Menu Close

Get Support From ShopWired Close

All Systems Are Operational

Subscribe To Updates
Prefer To Live Chat? Chat directly with ShopWired support Available 9.00am to 7.00pm Monday to Friday
11.00am to 5.00pm Saturday
Quickest response time

Send A Message
Response within 24 hours

Menu Close

Menu

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.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.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.mpn

Returns the MPN set for the product.


product.gtin

Returns the GTIN set for the product.


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').