{% 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 %} {% if promos %}{% endif %} {% if points %}{% endif %} {% for item in order.items %} {% if promos %} {% endif %} {% if points %}{% endif %} {% endfor %}
Product TotalPromosPoints
{{ item.product.name }} {{ item.total }} {% for promo in item.product.promotions %}{{ promo }}{% endfor %} {{ item.product.eligible_for_points|yesno:'Yes,No' }}
{% if not promos %}

Signup today!

{% endif %}

Shipping

{% if free_shipping %} Free shipping! {% else %} Estimate: {{ order.shipping.total }} {% endif %}