Shortcodes are used to inject data from the Purchase Order into the email and PDF templates. Below is a list of all available shortcodes
Purchase Order (Draft Order)
{{email}}{{line_items}}{{note}}{{note_attributes}}{{taxes_included}}{{currency}}{{subtotal_price}}{{total_tax}}{{total_price}}{{invoice_sent_at}}{{created_at}}{{updated_at}}{{tax_exempt}}{{completed_at}}{{name}}{{status}}{{invoice_url}}{{order_id}}{{tax_lines}}{{estimated_tax}}{{tags}}{{customer}}{{applied_discount}}{{available_shipping_rates}}{{shipping_address}}{{form_customer_name}}{{form_company_name}}{{form_po_number}}{{form_phone_number}}
Line Items
{% for item in line_items %}
--- loop through line items here ---
{% endfor %}
{{item.properties}}{{item.variant_id}}{{item.product_id}}{{item.name}}{{item.title}}{{item.variant_title}}{{item.sku }}{{item.vendor }}{{item.price}}{{item.extended_price}}{{item.quantity}}{{item.requires_shipping}}{{item.taxable}}{{item.gift_card}}{{item.fulfillment_service}}{{item.grams}}{{item.tax_lines}}{{item.custom}}{{item.applied_discount}}{{item.url}}{{item.image}}
Line Item Properties
{% for prop in item.properties %}
--- loop through line item properties here ---
{% endfor %}
{{prop.name}}{{prop.value}}
Customer
{{customer.email}}{{customer.accepts_marketing}}{{customer.created_at}}{{customer.updated_at}}{{customer.first_name}}{{customer.last_name}}{{customer.orders_count}}{{customer.state}}{{customer.total_spent}}{{customer.last_order_id}}{{customer.note}}{{customer.verified_email}}{{customer.tax_exempt}}{{customer.phone}}{{customer.tags}}{{customer.last_order_name}}{{customer.default_address}}
Customer Default Address
{{customer.default_address.name}}{{customer.default_address.first_name}}{{customer.default_address.last_name}}{{customer.default_address.company}}{{customer.default_address.address1}}{{customer.default_address.address2}}{{customer.default_address.city}}{{customer.default_address.province}}{{customer.default_address.country}}{{customer.default_address.zip}}{{customer.default_address.phone}}{{customer.default_address.province_code}}{{customer.default_address.country_code}}{{customer.default_address.country_name}}
Shipping Address
{{shipping_address.name}}{{shipping_address.first_name}}{{shipping_address.last_name}}{{shipping_address.company}}{{shipping_address.address1}}{{shipping_address.address2}}{{shipping_address.city}}{{shipping_address.province}}{{shipping_address.country}}{{shipping_address.zip}}{{shipping_address.phone}}{{shipping_address.province_code}}{{shipping_address.country_code}}{{shipping_address.country_name}}
Note Attributes
{% for attribute in note_attributes %}
--- loop through note attributes here ---
{% endfor %}
{{attribute.name}}{{attribute.value}}
Tax Lines
{% for tax in tac_lines%}
--- loop through tax lines here ---
{% endfor %}
{{tax.price}}{{tax.rate}}{{tax.title}}
Applied Discount
{{applied_discount.title}}{{applied_discount.description}}{{applied_discount.value}}{{applied_discount.value_type}}{{applied_discount.amount}}
Available Shipping Rates
{% for shipping in available_shipping_rates %}
--- loop through shipping rates here ---
{% endfor %}
{{shipping.handle}}{{shipping.title}}{{shipping.price.amount}}