Order product
The order.products array is part of the order object and has the following attributes:
product.name
Returns the name of the product.
product.price
Returns the price of the product. The price will be returned excluding any tax/VAT.
If discounts are applied to the order these will be included in this price.
product.original_price
Returns the original price (i.e. before any discounts are applied) of the product. The price will be returned excluding any tax/VAT.
Including tax
The product.price and product.original_price variables will return the price excluding any tax/VAT.
Additional price variables are available to display the price including any tax/VAT.
product.price_including_vat
product.original_price_including_vat
product.quantity
Returns the quantity of the individual product.
product.url
Returns the URL of the product page.
product.total
Returns the product.price x product.quantity.
product.comments
Returns any comments attached to the product when it was added to the order.
product.sku
Returns the SKU code for the product.
product.weight
Returns the weight of the product.
product.hs_code
Returns the entered HS Tariff code of the product.
product.photo_url
Returns the main photo for the product in the order.
order_product.brand.title
Returns the name of the brand the product belongs to.
product.options
Returns an array of the options selected for the product in the order.
{% for option in product.options %} {{ option.name }} {{ option.value }} {% endfor %}
returns...
Size: Small
{{ option.name }} returns the name of the variation type (e.g. 'Size').
{{ option.value }} returns the option chosen (e.g. 'Small').
product.extras
Returns an array of the product extras selected for the product in the order.
{% for extra in product.extras %} {{ extra.name }}: {{ currency_value(extra.value) }} {% endfor %}
returns...
Mobile phone charge: £25.00
{{ extra.name }} returns the name of the extra chosen.
{{ extra.value }} returns the price of the extra chosen.
product.alt_options
Returns an array of the product choices selected for the product in the order.
{% for option in product.alt_options %} {{ alt_option.name }} {{ alt_option.value }} {% endfor %}
returns...
Size: Small
{{ alt_option.name }} returns the name of the variation type (e.g. 'Size').
{{ alt_option.value }} returns the option chosen (e.g. 'Small').
product.gtin
Returns the GTIN for the product or product variation (if one is set). Importantly, this is the GTIN for the product/variation as it is now, not at the time the order was placed.
product.mpn
Returns the MPN for the product or product variation (if one is set). Importantly, this is the MPN for the product/variation as it is now, not at the time the order was placed.
product.gift_voucher.sender
Returns the value entered as the sender of the gift voucher.
product.gift_voucher.recipient
Returns the value entered as the recipient of the gift voucher.
product.gift_voucher.message
Returns the value entered as the gift voucher message.