forked from CGM_Public/pretix_original
Do not hide "free" if there is an original price
This commit is contained in:
@@ -144,7 +144,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
{% elif not var.display_price.gross %}
|
{% elif not var.display_price.gross %}
|
||||||
{% if not item.mandatory_priced_addons %}
|
{% if not item.mandatory_priced_addons or var.original_price %}
|
||||||
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif event.settings.display_net_prices %}
|
{% elif event.settings.display_net_prices %}
|
||||||
@@ -278,7 +278,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
{% elif not item.display_price.gross %}
|
{% elif not item.display_price.gross %}
|
||||||
{% if not item.mandatory_priced_addons %}
|
{% if not item.mandatory_priced_addons or item.original_price %}
|
||||||
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif event.settings.display_net_prices %}
|
{% elif event.settings.display_net_prices %}
|
||||||
|
|||||||
@@ -207,7 +207,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
{% elif not var.display_price.gross %}
|
{% elif not var.display_price.gross %}
|
||||||
{% if not item.mandatory_priced_addons %}
|
{% if not item.mandatory_priced_addons or var.original_price %}
|
||||||
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif event.settings.display_net_prices %}
|
{% elif event.settings.display_net_prices %}
|
||||||
@@ -341,7 +341,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
{% elif not item.display_price.gross %}
|
{% elif not item.display_price.gross %}
|
||||||
{% if not item.mandatory_priced_addons %}
|
{% if not item.mandatory_priced_addons or item.original_price %}
|
||||||
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif event.settings.display_net_prices %}
|
{% elif event.settings.display_net_prices %}
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ Vue.component('pricebox', {
|
|||||||
},
|
},
|
||||||
priceline: function () {
|
priceline: function () {
|
||||||
if (this.price.gross === "0.00") {
|
if (this.price.gross === "0.00") {
|
||||||
if (this.mandatory_priced_addons) {
|
if (this.mandatory_priced_addons && !this.original_price) {
|
||||||
return "\xA0"; // nbsp, because an empty string would cause the HTML element to collapse
|
return "\xA0"; // nbsp, because an empty string would cause the HTML element to collapse
|
||||||
}
|
}
|
||||||
return strings.free;
|
return strings.free;
|
||||||
|
|||||||
Reference in New Issue
Block a user