{% load expr %} {% expr membership and membership.type == "gold" or membership.type == "silver" as promos %} {% expr order.eligible_for_points and membership.points > 0 as points %} {% expr order.total >= 100 and order.shipping.country == "AU" as free_shipping %}
Product | Total | {% if promos %}Promos | {% endif %} {% if points %}Points | {% endif %}
---|---|---|---|
{{ item.product.name }} | {{ item.total }} | {% if promos %}{% for promo in item.product.promotions %}{{ promo }}{% endfor %} | {% endif %} {% if points %}{{ item.product.eligible_for_points|yesno:'Yes,No' }} | {% endif %}
Signup today!
{% endif %}