Add new option Item.min_per_order

This commit is contained in:
Raphael Michel
2017-04-13 14:16:23 +02:00
parent ae6ad8870d
commit 3c59a870e7
7 changed files with 172 additions and 10 deletions

View File

@@ -112,6 +112,13 @@
</a>
{% if item.description %}<p>{{ item.description|localize|rich_text }}</p>
{% endif %}
{% if item.min_per_order %}
<p><small>
{% blocktrans trimmed with num=item.min_per_order %}
minimum amount to order: {{ num }}
{% endblocktrans %}
</small></p>
{% endif %}
</div>
<div class="col-md-2 col-xs-6 price">
{% if item.min_price != item.max_price or item.free_price %}
@@ -207,6 +214,13 @@
{% if event.settings.show_quota_left %}
{% include "pretixpresale/event/fragment_quota_left.html" with avail=item.cached_availability %}
{% endif %}
{% if item.min_per_order %}
<p><small>
{% blocktrans trimmed with num=item.min_per_order %}
minimum amount to order: {{ num }}
{% endblocktrans %}
</small></p>
{% endif %}
</div>
<div class="col-md-2 col-xs-6 price">
{% if item.free_price %}