if
statement in the output template code. Let's say you want to exclude a line item named "Donation". You can use the following expression:{%- if line_item.name != "Donation" -%}
... item details ... {%- endif -%}
Width
, Depth
, and Height
. You can adjust the names to your needs. Please note that option names are case-sensitive (it matters if letters are uppercase or lowercase).order.transactions
:item.price
, item.discount_allocations
, and item.quantity
. item.discount_allocations
total_discount
by item.quantity
unit_discount
from item.price
to get unit price after discount.item.price
by item.quantity
and then subtract total_discount
.{{ order.transactions }}
. The transaction gateway
is then gift_card
. You can get the ID and last four characters of the gift card code from a transaction receipt
.{{ order.total_weight }}
variable. order.total_shipping_price_set
variable which may or may not include taxes depending on the value of order.taxes_included
. There is no variable that would hold shipping tax or a corresponding net/gross shipping price. To get the tax amount of the shipping cost, you'll need to calculate it from order.shipping_lines
this way: