Widget: docs and i18n

This commit is contained in:
Raphael Michel
2017-10-28 23:00:28 +02:00
parent bf8a6ebbf8
commit 9213a40219
10 changed files with 1332 additions and 766 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

104
doc/user/events/widget.rst Normal file
View File

@@ -0,0 +1,104 @@
Embeddable Widget
=================
If you want to show your ticket shop on your event website or blog, you can use our JavaScript widget. This way,
users will not need to leave your site to buy their ticket in most cases. The widget will still open a new tab
for the checkout if the user is on a mobile device.
To obtain the correct HTML code for embedding your event into your website, we recommend that you go to the "Widget"
tab of your event's settings. You can specify some optional settings there (for example the language of the widget)
and then click "Generate widget code".
.. thumbnail:: ../../screens/event/widget_form.png
:align: center
:class: screenshot
You will obtain two code snippets that look *roughly* like the following. The first should be embedded into the
``<head>`` part of your website, if possible. If this inconvenient, you can put it in the ``<body>`` part as well::
<link rel="stylesheet" type="text/css" href="https://pretix.eu/demo/democon/widget/v1.css">
<script type="text/javascript" src="https://pretix.eu/widget/v1.en.js" async></script>
The second snippet should be embedded at the position where the widget should show up::
<pretix-widget event="https://pretix.eu/demo/democon/"></pretix-widget>
<noscript>
<div class="pretix-widget">
<div class="pretix-widget-info-message">
JavaScript is disabled in your browser. To access our ticket shop without JavaScript,
please <a target="_blank" href="https://pretix.eu/demo/democon/">click here</a>.
</div>
</div>
</noscript>
.. note::
You can of course embed multiple widgets of multiple events on your page. In this case, please add the first
snippet only *once* and the second snippets once *for each event*.
Example
-------
Your embedded widget could look like the following:
.. raw:: html
<link rel="stylesheet" type="text/css" href="https://pretix.eu/demo/democon/widget/v1.css">
<script type="text/javascript" src="https://pretix.eu/widget/v1.en.js" async></script>
<pretix-widget event="https://pretix.eu/demo/democon/"></pretix-widget>
<noscript>
<div class="pretix-widget">
<div class="pretix-widget-info-message">
JavaScript is disabled in your browser. To access our ticket shop without javascript, please <a target="_blank" href="https://pretix.eu/demo/democon/">click here</a>.
</div>
</div>
</noscript>
Styling
-------
If you want, you can customize the appearance of the widget to fit your website with CSS. If you inspect the rendered
HTML of the widget with your browser's developer tools, you will see that nearly every element has a custom class
and all classes are prefixed with ``pretix-widget``. You can override the styles as much as you want to and if
you want to go all custom, you don't even need to use the stylesheet provided by us at all.
SSL
---
Since buying a ticket normally involves entering sensitive data, we strongly suggest that you use SSL/HTTPS for the page
that includes the widget. Initiatives like `Let's Encrypt`_ allow you to obtain a SSL certificat free of charge.
All data transferred to pretix will be made over SSL, even if using the widget on a non-SSL site. However, without
using SSL for your site, a man-in-the-middle attacker could potentially alter the widget in dangerous ways. Moreover,
using SSL is becoming standard practice and your customers might want expect see the secure lock icon in their browser
granted to SSL-enabled web pages.
By default, the checkout process will open in a new tab in your customer's browsers if you don't use SSL for your
website. If you confident to have a good reason for not using SSL, you can override this behaviour with the
``skip-ssl-check`` attribute::
<pretix-widget event="https://pretix.eu/demo/democon/" skip-ssl-check></pretix-widget>
Pre-selecting a voucher
-----------------------
You can pre-select a voucher for the widget with the ``voucher`` attribute::
<pretix-widget event="https://pretix.eu/demo/democon/" voucher="ABCDE123456"></pretix-widget>
This way, the widget will only show products that can be bought with the voucher and prices according to the
voucher's settings.
.. raw:: html
<pretix-widget event="https://pretix.eu/demo/democon/" voucher="ABCDE123456"></pretix-widget>
<noscript>
<div class="pretix-widget">
<div class="pretix-widget-info-message">
JavaScript is disabled in your browser. To access our ticket shop without javascript, please <a target="_blank" href="https://pretix.eu/demo/democon/">click here</a>.
</div>
</div>
</noscript>
.. _Let's Encrypt: https://letsencrypt.org/

View File

@@ -11,3 +11,4 @@ wanting to use pretix to sell tickets.
events/create events/create
events/taxes events/taxes
payments/index payments/index
events/widget

View File

@@ -6,7 +6,7 @@ localecompile:
localegen: localegen:
./manage.py makemessages --all --ignore "pretix/helpers/*" ./manage.py makemessages --all --ignore "pretix/helpers/*"
./manage.py makemessages --all -d djangojs --ignore "pretix/helpers/*" --ignore "pretix/static/jsi18n/*" --ignore "pretix/static/jsi18n/*" --ignore "pretix/static.dist/*" --ignore "build/*" ./manage.py makemessages --all -d djangojs --ignore "pretix/helpers/*" --ignore "pretix/static/jsi18n/*" --ignore "pretix/static/jsi18n/*" --ignore "pretix/static.dist/*" --ignore "data/*" --ignore "build/*"
staticfiles: jsi18n staticfiles: jsi18n
./manage.py collectstatic --noinput ./manage.py collectstatic --noinput

View File

@@ -35,13 +35,19 @@
&lt;div class="pretix-widget"&gt; &lt;div class="pretix-widget"&gt;
&lt;div class="pretix-widget-info-message"&gt; &lt;div class="pretix-widget-info-message"&gt;
{% blocktrans trimmed with a_attr='target="_blank" href="'|add:indexurl|add:'"'|safe %} {% blocktrans trimmed with a_attr='target="_blank" href="'|add:indexurl|add:'"'|safe %}
JavaScript is disabled in your browser. To access our ticket shop without javascript, JavaScript is disabled in your browser. To access our ticket shop without JavaScript,
please &lt;a {{ a_attr }}&gt;click here&lt;/a&gt;. please &lt;a {{ a_attr }}&gt;click here&lt;/a&gt;.
{% endblocktrans %} {% endblocktrans %}
&lt;/div&gt; &lt;/div&gt;
&lt;/div&gt; &lt;/div&gt;
&lt;/noscript&gt; &lt;/noscript&gt;
</pre> </pre>
<p>
<a href="https://docs.pretix.eu/en/latest/user/events/widget.html" target="_blank">
<span class="fa fa-question-circle"></span>
{% trans "Read our documentation for more information" %}
</a>
</p>
{% else %} {% else %}
<p> <p>
{% blocktrans trimmed %} {% blocktrans trimmed %}

File diff suppressed because it is too large Load Diff

View File

@@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-18 11:11+0000\n" "POT-Creation-Date: 2017-10-28 20:59+0000\n"
"PO-Revision-Date: 2017-08-27 09:35+0200\n" "PO-Revision-Date: 2017-10-28 22:59+0200\n"
"Last-Translator: Raphael Michel <michel@rami.io>\n" "Last-Translator: Raphael Michel <michel@rami.io>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: de\n" "Language: de\n"
@@ -16,7 +16,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.3\n" "X-Generator: Poedit 2.0.2\n"
#: pretix/plugins/banktransfer/static/pretixplugins/banktransfer/ui.js:56 #: pretix/plugins/banktransfer/static/pretixplugins/banktransfer/ui.js:56
#: pretix/plugins/banktransfer/static/pretixplugins/banktransfer/ui.js:62 #: pretix/plugins/banktransfer/static/pretixplugins/banktransfer/ui.js:62
@@ -188,12 +188,12 @@ msgid "Unknown error."
msgstr "Unbekannter Fehler." msgstr "Unbekannter Fehler."
#: pretix/static/pretixcontrol/js/ui/main.js:329 #: pretix/static/pretixcontrol/js/ui/main.js:329
msgid "Alle" msgid "All"
msgstr "" msgstr "Alle"
#: pretix/static/pretixcontrol/js/ui/main.js:330 #: pretix/static/pretixcontrol/js/ui/main.js:330
msgid "Keine" msgid "None"
msgstr "" msgstr "Keine"
#: pretix/static/pretixcontrol/js/ui/question.js:41 #: pretix/static/pretixcontrol/js/ui/question.js:41
msgid "Others" msgid "Others"
@@ -203,11 +203,15 @@ msgstr "Sonstige"
msgid "Count" msgid "Count"
msgstr "Anzahl" msgstr "Anzahl"
#: pretix/static/pretixpresale/js/ui/cart.js:16 #: pretix/static/pretixpresale/js/ui/cart.js:22
msgid "The items in your cart are no longer reserved for you." msgid "The items in your cart are no longer reserved for you."
msgstr "Die Produkte in Ihrem Warenkorb sind nicht mehr für Sie reserviert." msgstr "Die Produkte in Ihrem Warenkorb sind nicht mehr für Sie reserviert."
#: pretix/static/pretixpresale/js/ui/cart.js:20 #: pretix/static/pretixpresale/js/ui/cart.js:24
msgid "Cart expired"
msgstr "Warenkorb abgelaufen"
#: pretix/static/pretixpresale/js/ui/cart.js:29
msgid "The items in your cart are reserved for you for one minute." msgid "The items in your cart are reserved for you for one minute."
msgid_plural "The items in your cart are reserved for you for {num} minutes." msgid_plural "The items in your cart are reserved for you for {num} minutes."
msgstr[0] "" msgstr[0] ""
@@ -215,20 +219,132 @@ msgstr[0] ""
msgstr[1] "" msgstr[1] ""
"Die Produkte in Ihrem Warenkorb sind noch {num} Minuten für Sie reserviert." "Die Produkte in Ihrem Warenkorb sind noch {num} Minuten für Sie reserviert."
#: pretix/static/pretixcontrol/js/ui/main.js:329 #: pretix/static/pretixpresale/js/widget/widget.js:9
msgid "All" msgctxt "widget"
msgstr "Alle" msgid "Sold out"
msgstr "Ausverkauft"
#: pretix/static/pretixcontrol/js/ui/main.js:330 #: pretix/static/pretixpresale/js/widget/widget.js:10
msgid "None" msgctxt "widget"
msgstr "Keine" msgid "Buy"
msgstr "In den Warenkorb"
#: pretix/static/pretixpresale/js/widget/widget.js:11
msgctxt "widget"
msgid "Reserved"
msgstr "Reserviert"
#: pretix/static/pretixpresale/js/widget/widget.js:12
msgctxt "widget"
msgid "FREE"
msgstr "GRATIS"
#: pretix/static/pretixpresale/js/widget/widget.js:13
msgctxt "widget"
msgid "from %(currency)s %(price)s"
msgstr "ab %(currency)s %(price)s"
#: pretix/static/pretixpresale/js/widget/widget.js:14
msgctxt "widget"
msgid "incl. %(rate)s% %(taxname)s"
msgstr "inkl. %(rate)s% %(taxname)s"
#: pretix/static/pretixpresale/js/widget/widget.js:15
msgctxt "widget"
msgid "plus %(rate)s% %(taxname)s"
msgstr "zzgl. %(rate)s% %(taxname)s"
#: pretix/static/pretixpresale/js/widget/widget.js:16
#, javascript-format
msgctxt "widget"
msgid "currently available: %s"
msgstr "aktuell verfügbar: %s"
#: pretix/static/pretixpresale/js/widget/widget.js:17
msgctxt "widget"
msgid "Only available with a voucher"
msgstr "Nur mit Gutschein verfügbar"
#: pretix/static/pretixpresale/js/widget/widget.js:18
#, javascript-format
msgctxt "widget"
msgid "minimum amount to order: %s"
msgstr "minimale Bestellmenge: %s"
#: pretix/static/pretixpresale/js/widget/widget.js:19
msgctxt "widget"
msgid "Close ticket shop"
msgstr "Ticket-Shop schließen"
#: pretix/static/pretixpresale/js/widget/widget.js:20
msgctxt "widget"
msgid "The ticket shop could not be loaded."
msgstr "Der Ticket-Shop konnte nicht geladen werden."
#: pretix/static/pretixpresale/js/widget/widget.js:21
msgctxt "widget"
msgid "The cart could not be created. Please try again later"
msgstr "Der Warenkorb konnte nicht erstellt werden. Bitte erneut versuchen."
#: pretix/static/pretixpresale/js/widget/widget.js:22
msgctxt "widget"
msgid "Waiting list"
msgstr "Warteliste"
#: pretix/static/pretixpresale/js/widget/widget.js:23
msgctxt "widget"
msgid ""
"You currently have an active cart for this event. If you select more "
"products, they will be added to your existing cart. Click on this message to "
"continue checkout with your cart."
msgstr ""
"Sie haben einen aktiven Warenkorb für diese Veranstaltung. Wenn Sie mehr "
"Produkte auswählen, werden diese zu Ihrem Warenkorb hinzugefügt. Klicken Sie "
"auf diese Meldung um den Kauf des bestehenden Warenkorbs fortzusetzen oder "
"den Warenkorb zu verändern."
#: pretix/static/pretixpresale/js/widget/widget.js:26
msgctxt "widget"
msgid ""
"ticketing powered by <a href=\"https://pretix.eu\" target=\"_blank\">pretix</"
"a>"
msgstr ""
"ticketing powered by <a href=\"https://pretix.eu\" target=\"_blank\">pretix</"
"a>"
#: pretix/static/pretixpresale/js/widget/widget.js:27
msgctxt "widget"
msgid "Redeem a voucher"
msgstr "Gutschein einlösen"
#: pretix/static/pretixpresale/js/widget/widget.js:28
msgctxt "widget"
msgid "Redeem"
msgstr "Einlösen"
#: pretix/static/pretixpresale/js/widget/widget.js:29
msgctxt "widget"
msgid "Voucher code"
msgstr "Gutscheincode"
#: pretix/static/pretixpresale/js/widget/widget.js:30
msgctxt "widget"
msgid "Close"
msgstr "Schließen"
#: pretix/static/pretixpresale/js/widget/widget.js:31
msgctxt "widget"
msgid "Continue"
msgstr "Weiter"
#: pretix/static/pretixpresale/js/widget/widget.js:32
msgctxt "widget"
msgid "See variations"
msgstr "Varianten zeigen"
#~ msgid "Sample product" #~ msgid "Sample product"
#~ msgstr "Beispielprodukt" #~ msgstr "Beispielprodukt"
#~ msgid "Sample variation"
#~ msgstr "Beispielvariante"
#~ msgid "Sample product sample variation" #~ msgid "Sample product sample variation"
#~ msgstr "Beispielprodukt Beispielvariante" #~ msgstr "Beispielprodukt Beispielvariante"

File diff suppressed because it is too large Load Diff

View File

@@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-18 11:11+0000\n" "POT-Creation-Date: 2017-10-28 20:59+0000\n"
"PO-Revision-Date: 2017-08-27 09:35+0200\n" "PO-Revision-Date: 2017-10-28 22:59+0200\n"
"Last-Translator: Raphael Michel <michel@rami.io>\n" "Last-Translator: Raphael Michel <michel@rami.io>\n"
"Language-Team: \n" "Language-Team: \n"
"Language: de\n" "Language: de\n"
@@ -16,7 +16,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.3\n" "X-Generator: Poedit 2.0.2\n"
#: pretix/plugins/banktransfer/static/pretixplugins/banktransfer/ui.js:56 #: pretix/plugins/banktransfer/static/pretixplugins/banktransfer/ui.js:56
#: pretix/plugins/banktransfer/static/pretixplugins/banktransfer/ui.js:62 #: pretix/plugins/banktransfer/static/pretixplugins/banktransfer/ui.js:62
@@ -203,11 +203,15 @@ msgstr "Sonstige"
msgid "Count" msgid "Count"
msgstr "Anzahl" msgstr "Anzahl"
#: pretix/static/pretixpresale/js/ui/cart.js:16 #: pretix/static/pretixpresale/js/ui/cart.js:22
msgid "The items in your cart are no longer reserved for you." msgid "The items in your cart are no longer reserved for you."
msgstr "Die Produkte in deinem Warenkorb sind nicht mehr für dich reserviert." msgstr "Die Produkte in deinem Warenkorb sind nicht mehr für dich reserviert."
#: pretix/static/pretixpresale/js/ui/cart.js:20 #: pretix/static/pretixpresale/js/ui/cart.js:24
msgid "Cart expired"
msgstr "Warenkorb abgelaufen"
#: pretix/static/pretixpresale/js/ui/cart.js:29
msgid "The items in your cart are reserved for you for one minute." msgid "The items in your cart are reserved for you for one minute."
msgid_plural "The items in your cart are reserved for you for {num} minutes." msgid_plural "The items in your cart are reserved for you for {num} minutes."
msgstr[0] "" msgstr[0] ""
@@ -215,12 +219,132 @@ msgstr[0] ""
msgstr[1] "" msgstr[1] ""
"Die Produkte in deinem Warenkorb sind noch {num} Minuten für dich reserviert." "Die Produkte in deinem Warenkorb sind noch {num} Minuten für dich reserviert."
#: pretix/static/pretixpresale/js/widget/widget.js:9
msgctxt "widget"
msgid "Sold out"
msgstr "Ausverkauft"
#: pretix/static/pretixpresale/js/widget/widget.js:10
msgctxt "widget"
msgid "Buy"
msgstr "In den Warenkorb"
#: pretix/static/pretixpresale/js/widget/widget.js:11
msgctxt "widget"
msgid "Reserved"
msgstr "Reserviert"
#: pretix/static/pretixpresale/js/widget/widget.js:12
msgctxt "widget"
msgid "FREE"
msgstr "GRATIS"
#: pretix/static/pretixpresale/js/widget/widget.js:13
msgctxt "widget"
msgid "from %(currency)s %(price)s"
msgstr "ab %(currency)s %(price)s"
#: pretix/static/pretixpresale/js/widget/widget.js:14
msgctxt "widget"
msgid "incl. %(rate)s% %(taxname)s"
msgstr "inkl. %(rate)s% %(taxname)s"
#: pretix/static/pretixpresale/js/widget/widget.js:15
msgctxt "widget"
msgid "plus %(rate)s% %(taxname)s"
msgstr "zzgl. %(rate)s% %(taxname)s"
#: pretix/static/pretixpresale/js/widget/widget.js:16
#, javascript-format
msgctxt "widget"
msgid "currently available: %s"
msgstr "aktuell verfügbar: %s"
#: pretix/static/pretixpresale/js/widget/widget.js:17
msgctxt "widget"
msgid "Only available with a voucher"
msgstr "Nur mit Gutschein verfügbar"
#: pretix/static/pretixpresale/js/widget/widget.js:18
#, javascript-format
msgctxt "widget"
msgid "minimum amount to order: %s"
msgstr "minimale Bestellmenge: %s"
#: pretix/static/pretixpresale/js/widget/widget.js:19
msgctxt "widget"
msgid "Close ticket shop"
msgstr "Ticket-Shop schließen"
#: pretix/static/pretixpresale/js/widget/widget.js:20
msgctxt "widget"
msgid "The ticket shop could not be loaded."
msgstr "Der Ticket-Shop konnte nicht geladen werden."
#: pretix/static/pretixpresale/js/widget/widget.js:21
msgctxt "widget"
msgid "The cart could not be created. Please try again later"
msgstr "Der Warenkorb konnte nicht erstellt werden. Bitte erneut versuchen."
#: pretix/static/pretixpresale/js/widget/widget.js:22
msgctxt "widget"
msgid "Waiting list"
msgstr "Warteliste"
#: pretix/static/pretixpresale/js/widget/widget.js:23
msgctxt "widget"
msgid ""
"You currently have an active cart for this event. If you select more "
"products, they will be added to your existing cart. Click on this message to "
"continue checkout with your cart."
msgstr ""
"Du hast einen aktiven Warenkorb für diese Veranstaltung. Wenn du mehr "
"Produkte auswählst, werden diese zu deinem Warenkorb hinzugefügt. Klicke auf "
"diese Meldung um den Kauf des bestehenden Warenkorbs fortzusetzen oder den "
"Warenkorb zu verändern."
#: pretix/static/pretixpresale/js/widget/widget.js:26
msgctxt "widget"
msgid ""
"ticketing powered by <a href=\"https://pretix.eu\" target=\"_blank\">pretix</"
"a>"
msgstr ""
"ticketing powered by <a href=\"https://pretix.eu\" target=\"_blank\">pretix</"
"a>"
#: pretix/static/pretixpresale/js/widget/widget.js:27
msgctxt "widget"
msgid "Redeem a voucher"
msgstr "Gutschein einlösen"
#: pretix/static/pretixpresale/js/widget/widget.js:28
msgctxt "widget"
msgid "Redeem"
msgstr "Einlösen"
#: pretix/static/pretixpresale/js/widget/widget.js:29
msgctxt "widget"
msgid "Voucher code"
msgstr "Gutscheincode"
#: pretix/static/pretixpresale/js/widget/widget.js:30
msgctxt "widget"
msgid "Close"
msgstr "Schließen"
#: pretix/static/pretixpresale/js/widget/widget.js:31
msgctxt "widget"
msgid "Continue"
msgstr "Fortfahren"
#: pretix/static/pretixpresale/js/widget/widget.js:32
msgctxt "widget"
msgid "See variations"
msgstr "Varianten zeigen"
#~ msgid "Sample product" #~ msgid "Sample product"
#~ msgstr "Beispielprodukt" #~ msgstr "Beispielprodukt"
#~ msgid "Sample variation"
#~ msgstr "Beispielvariante"
#~ msgid "Sample product sample variation" #~ msgid "Sample product sample variation"
#~ msgstr "Beispielprodukt Beispielvariante" #~ msgstr "Beispielprodukt Beispielvariante"

View File

@@ -29,6 +29,7 @@ var strings = {
'voucher_code': django.pgettext('widget', 'Voucher code'), 'voucher_code': django.pgettext('widget', 'Voucher code'),
'close': django.pgettext('widget', 'Close'), 'close': django.pgettext('widget', 'Close'),
'continue': django.pgettext('widget', 'Continue'), 'continue': django.pgettext('widget', 'Continue'),
'variations': django.pgettext('widget', 'See variations'),
}; };
var setCookie = function (cname, cvalue, exdays) { var setCookie = function (cname, cvalue, exdays) {
@@ -296,7 +297,7 @@ Vue.component('item', {
+ '<div class="pretix-widget-pricebox" v-if="item.has_variations">{{ pricerange }}</div>' + '<div class="pretix-widget-pricebox" v-if="item.has_variations">{{ pricerange }}</div>'
+ '</div>' + '</div>'
+ '<div class="pretix-widget-item-availability-col">' + '<div class="pretix-widget-item-availability-col">'
+ '<a v-if="show_toggle" href="#" @click.prevent="expand">See variations</a>' + '<a v-if="show_toggle" href="#" @click.prevent="expand">'+ strings.variations + '</a>'
+ '<availbox v-if="!item.has_variations" :item="item"></availbox>' + '<availbox v-if="!item.has_variations" :item="item"></availbox>'
+ '</div>' + '</div>'
@@ -349,7 +350,7 @@ Vue.component('item', {
if (this.item.min_price !== this.item.max_price || this.item.free_price) { if (this.item.min_price !== this.item.max_price || this.item.free_price) {
return django.interpolate(strings.price_from, { return django.interpolate(strings.price_from, {
'currency': this.$root.currency, 'currency': this.$root.currency,
'price': floatformat(this.$root.price, 2) 'price': floatformat(this.item.min_price, 2)
}, true); }, true);
} else if (this.item.min_price === "0.00" && this.item.max_price === "0.00") { } else if (this.item.min_price === "0.00" && this.item.max_price === "0.00") {
return strings.free; return strings.free;