diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 3199ffb4b..043169991 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -333,12 +333,12 @@ Vue.component('availbox', { }); Vue.component('pricebox', { template: ('
' - + '{{ priceline }}' + + '' + '' + '{{ original_line }} ' - + '{{ priceline }}' + + '' + '
' - + '{{ $root.currency }} ' + + '{{ $root.currency }} ' + '' @@ -391,7 +391,7 @@ Vue.component('pricebox', { } return strings.free; } else { - return this.$root.currency + " " + this.display_price; + return '' + this.$root.currency + " " + this.display_price; } }, taxline: function () { @@ -497,7 +497,7 @@ Vue.component('item', { + ' :mandatory_priced_addons="item.mandatory_priced_addons" :suggested_price="item.suggested_price"' + ' :field_name="\'price_\' + item.id" :original_price="item.original_price">' + '' - + '
{{ pricerange }}
' + + '
' + ' ' + '
' @@ -588,9 +588,10 @@ Vue.component('item', { return django.interpolate(strings.price_from, { 'currency': this.$root.currency, 'price': floatformat(this.item.min_price, 2) - }, true); + }, true).replace(this.$root.currency, '' + this.$root.currency + ''); } else if (this.item.min_price !== this.item.max_price) { - return this.$root.currency + " " + floatformat(this.item.min_price, 2) + " – " + return '' + this.$root.currency + " " + + floatformat(this.item.min_price, 2) + " – " + floatformat(this.item.max_price, 2); } else if (this.item.min_price === "0.00" && this.item.max_price === "0.00") { if (this.item.mandatory_priced_addons) { @@ -598,7 +599,7 @@ Vue.component('item', { } return strings.free; } else { - return this.$root.currency + " " + floatformat(this.item.min_price, 2); + return '' + this.$root.currency + " " + floatformat(this.item.min_price, 2); } }, variationsToggleLabel: function () {