forked from CGM_Public/pretix_original
Checkout: label add-ons as free if price is 0 and add-ons are not included in the main product
This commit is contained in:
committed by
GitHub
parent
32ab7c3d4f
commit
87cea200a9
@@ -141,6 +141,7 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
{% elif not var.display_price.gross %}
|
{% elif not var.display_price.gross %}
|
||||||
|
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
||||||
{% elif event.settings.display_net_prices %}
|
{% elif event.settings.display_net_prices %}
|
||||||
{{ var.display_price.net|money:event.currency }}
|
{{ var.display_price.net|money:event.currency }}
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -181,6 +182,7 @@
|
|||||||
name="cp_{{ form.pos.pk }}_variation_{{ item.id }}_{{ var.id }}"
|
name="cp_{{ form.pos.pk }}_variation_{{ item.id }}_{{ var.id }}"
|
||||||
data-exclusive-prefix="cp_{{ form.pos.pk }}_variation_{{ item.id }}_"
|
data-exclusive-prefix="cp_{{ form.pos.pk }}_variation_{{ item.id }}_"
|
||||||
aria-label="{% blocktrans with item=item.name var=var %}Add {{ item }}, {{ var }} to cart{% endblocktrans %}">
|
aria-label="{% blocktrans with item=item.name var=var %}Add {{ item }}, {{ var }} to cart{% endblocktrans %}">
|
||||||
|
<i class="fa fa-cart-plus fa-lg" aria-hidden="true"></i>
|
||||||
</label>
|
</label>
|
||||||
{% else %}
|
{% else %}
|
||||||
<input type="number" class="form-control input-item-count" placeholder="0" min="0"
|
<input type="number" class="form-control input-item-count" placeholder="0" min="0"
|
||||||
@@ -260,6 +262,7 @@
|
|||||||
step="any">
|
step="any">
|
||||||
</div>
|
</div>
|
||||||
{% elif not item.display_price.gross %}
|
{% elif not item.display_price.gross %}
|
||||||
|
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
||||||
{% elif event.settings.display_net_prices %}
|
{% elif event.settings.display_net_prices %}
|
||||||
{{ item.display_price.net|money:event.currency }}
|
{{ item.display_price.net|money:event.currency }}
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -306,6 +309,7 @@
|
|||||||
id="cp_{{ form.pos.pk }}_item_{{ item.id }}"
|
id="cp_{{ form.pos.pk }}_item_{{ item.id }}"
|
||||||
aria-label="{% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %}"
|
aria-label="{% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %}"
|
||||||
{% if item.description %} aria-describedby="cp-{{ form.pos.pk }}-item-{{ item.id }}-description"{% endif %}>
|
{% if item.description %} aria-describedby="cp-{{ form.pos.pk }}-item-{{ item.id }}-description"{% endif %}>
|
||||||
|
<i class="fa fa-cart-plus fa-lg" aria-hidden="true"></i>
|
||||||
</label>
|
</label>
|
||||||
{% else %}
|
{% else %}
|
||||||
<input type="number" class="form-control input-item-count" placeholder="0" min="0"
|
<input type="number" class="form-control input-item-count" placeholder="0" min="0"
|
||||||
|
|||||||
@@ -276,7 +276,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
{% elif not item.display_price.gross %}
|
{% elif not item.display_price.gross %}
|
||||||
{% trans "FREE" context "price" %}
|
<span class="text-uppercase">{% trans "free" context "price" %}</span>
|
||||||
{% elif event.settings.display_net_prices %}
|
{% elif event.settings.display_net_prices %}
|
||||||
{{ item.display_price.net|money:event.currency }}
|
{{ item.display_price.net|money:event.currency }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user