Shortcodes are used to inject data from the quote into the email and PDF templates. You can view all available shortcodes by selecting the Short Codes button on any of the template pages
General
{{company_info}}
{{logo_url}}
{{shop_name}}
{{quote_link}}
Language
{{language.quote_text}}
{{language.product_text}}
{{language.quantity_text}}
{{language.price_text}}
{{language.extended_text}}
{{language.subtotal_text }}
{{language.tax_text }}
{{language.total_text}}
{{language.view_accept_link_text}}
{{language.view_quote_text}}
{{language.remarks_text}}
{{language.quote_submitted_link_text}}
Quote
{{quote.quote_number}}
{{quote.email}}
{{quote.first_name}}
{{quote.last_name}}
{{quote.phone}}
{{quote.created_on}}
{{quote.status}}
{{quote.remarks}}
{{quote.public_notes}}
{{quote.discount_amount}}
{{quote.discount_reason}}
{{quote.discount_value_type}}
{{quote.shipping_price}}
{{quote.shipping_name}}
{{quote.subtotal}}
{{quote.tax}}
{{quote.total}}
-
{{quote.assignee}}
-
{{quote.customer}}
-
{{quote.line_items}}
-
{{quote.custom_fields}}
-
{{quote.cart_attributes}}
Assignee
{{quote.assignee.id}}
{{quote.assignee.name}}
{{quote.assignee.email}}
{{quote.assignee.info}}
Customer
{{quote.customer.first_name}}
{{quote.customer.last_name}}
{{quote.customer.email}}
{{quote.customer.phone}}
{{quote.customer.tags}}
-
{{quote.customer.addresses}}
-
{{quote.customer.metafields}}
Addresses
{% for address in quote.customer.addresses %}
--- loop through addresses here ---
{% endfor %}
{{address.address1}}
{{address.address2}}
{{address.city}}
{{address.company}}
{{address.country}}
{{address.first_name}}
{{address.last_name}}
{{address.phone}}
{{address.province}}
{{address.zip}}
{{address.province_code}}
{{address.country_code}}
{{address.country_name}}
{{address.default}}
Metafields
{% for metafield in quote.customer.metafields %}
--- loop through meta fields here ---
{% endfor %}
{{line_item.metafields | metafield:"namespace.key"}}
Display value by namesace & key
{{line_item.metafields | metafield:"namespace.key"}}
{{metafield.namespace}}
{{metafield.key}}
{{metafield.value}}
Line Items
{% for line_item in quote.line_items %}
--- loop through line items here ---
{% endfor %}
{{line_item.title}}
{{line_item.sku}}
{{line_item.barcode}}
{{line_item.url}}
{{line_item.variant_title}}
{{line_item.image_url}}
{{line_item.quantity}}
{{line_item.original_price}}
{{line_item.price}}
{{line_item.compare_at_price}}
{{line_item.subtotal}}
{{line_item.subtotal_without_discount}}
-
{{line_item.metafields}}
-
{{line_item.variant_metafields}}
-
{{line_item.properties}}
-
{{line_item.discount}}
{{line_item.harmonized_system_code}}
{{line_item.country_code_of_origin}}
{{line_item.weight}}
{{line_item.weight_units}}
Line Item Properties
{% for prop in line_item.properties %}
--- loop through line item properties here ---
{% endfor %}
{{prop.key}}
{{prop.value}}
Line Item Discount
{{line_item.discount.amount}}
{{line_item.discount.reason}}
{{line_item.discount.value_type}}
Custom Fields
{% for custom_field in quote.custom_fields %}
--- loop through custom fields here ---
{% endfor %}
{{custom_field.name}}
{{custom_field.value}}
{{custom_field.field_type}}
Note: The value of an address field is a JSON object. A special filter has been created to help display the value of the address field.
{% for custom_field in quote.custom_fields %}
{{custom_field.name }} :
{% if custom_field.field_type == "address" %}
{{custom_field.value | address}}
{% else %}
{{custom_field.value}}
{% endif %}
{% endfor %}
Cart Attributes
{% for attribute in quote.cart_attributes %}
--- loop through cart attributes here ---
{% endfor %}
{{attribute.key}}
{{attribute.value}}