The following attributes are available for a purchase order.
Variable name | Description |
---|---|
{{ supplier.name }} | Supplier contact name |
{{ supplier.company }} | Supplier company name |
Variable name | Description |
---|---|
{{ purchase_order.date_created }} | Created date |
{{ purchase_order.expected_date }} | Expected date |
{{ purchase_order.po_number }} | PO number |
{{ purchase_order.currency }} | Currency |
{{ purchase_order.authorized_by }} | Authorized by |
{{ purchase_order.comment }} | Comment |
{{ purchase_order.totals.units_ordered }} | Total amount of units ordered |
{{ purchase_order.totals.subtotal }} | Products subtotal |
{{ purchase_order.totals.shipping_and_handling }} | Shipping and handling price |
{{ purchase_order.totals.total }} | Products total amount |
{{ purchase_order.products }} | Array of products. Check Purchase Order product below for more details |
{{ purchase_order.shipping_address }} | PO's shipping address. Check address details below |
{{ purchase_order.billing_address }} | PO's billing address. Check address details below |
Check this guide to learn more about how to render the products table.
Variable name | Description |
---|---|
{{ product.supplier_ref }} | Supplier ref. (Supplier SKU) |
{{ product.quantity }} | Quantity |
{{ product.price }} | Unit product price |
{{ product.subtotal_price }} | Subtotal price |
{{ product.sku }} | Variant SKU |
{{ product.product_title }} | Product title |
{{ product.variant_title }} | Variant title |
Variable name | Description |
---|---|
{{ address.address_line_1 }} | Address 1 |
{{ address.address_line_2 }} | Address 2 |
{{ address.city }} | City |
{{ address.country }} | Country |
{{ address.region }} | Region |
{{ address.postal_code }} | Postal code |
{{ address.phone }} | Phone |
{{ address.country_code }} | Country code |
{{ address.region_code }} | Region code |
{{ address.company }} | Company |
{{ address.contact_name }} | Contact name |
In the above example address
name is used, but the PO has 2 addresses – shipping & billing. Use the
billing_address
or shipping_address
variable, not address
.
Customer object is only available if PO has a Shopify order.
Variable name | Description |
---|---|
{{ customer.email }} | |
{{ customer.first_name }} | First name |
{{ customer.last_name }} | Last name |
{{ customer.phone }} | Phone |