{# When a form has a 'type' attribute with a value of 'product' the below elements are inserted #} {% if form.price %} {% set startingprice = form.price.lowest or 0 %} {%- if form.qty -%} Quantity {%- else -%} {%- endif -%}