This document lists examples of how to use the liquid variables that are available for use in the order templates but are not currently used in the default templates.
You need to have a good understanding of the Liquid programming language to customize the templates. However, here is a brief introduction to how Liquid works.
Liquid is a template language used to render dynamic content. Liquid is written just like regular HTML markup with the addition of easy-to-read constructs, Liquid statements are built using a combination of objects, tags, and filters.
Objects
Objects contain expressions that display the variable data. Liquid objects are commonly referred to as Liquid variables. Objects are denoted by a set of double curly braces containing the variable expression.
{{ variable_goes_here }}
Tags
Tags display the logic that tells the template what data to display. Tags are denoted by a set of curly brace percentage delimiters.
{% logic_goes_here %}
E.g. To print out the payment instructions if the order uses COD.
{% if order.using_cod? %} <h3>Payment Instructions</h3> <p>{{ order.payment_instructions }}</p> {% endif %}
Filters
Filters are used to change the output of a liquid variable. Filters tell the template how to format the data. You can invoke filters by following the value in an object with a pipe character (|), followed by the name of the filter. E.g.
{{ balance | format_currency }}
Click on a link below to see an example of how to use the liquid variables that are not used in the default templates.
Non-Default Variable Usage Examples
- How to Show Separate Blank Product and Decoration Prices in the Order Template
- How to Show Line Total Excluding Tax in the Order Template
- How to Show a Separate Line for Each Tax in the Order Template
- How to Include the Order Title in the Order and Worksheet Templates
- How to Include the File Attachments for Line Items in the Artwork Approval Template
- How to Include Payment Methods in the Order and Worksheet Templates
- How to Include the Source of an Order in the Order Template
- How to Show Sales Team Member Name in a Quote/Order and in a Worksheet
- How to Show an Quote/Order is a priority order in the Order Template
- How to Include Production Team Member Names in the Order Template
- How to Include Production Team Member Name in the Worksheet Template
- How to Include Shipment Dates in the Shipping Label and Packing Slip Templates
- How to Include the Supplier Description in the Purchase Order Template
- How to Include the Requested Due Date in the Purchase Order Template
- How to Include the Actual Name Specified for the Rush Order Fee in the Order Template
- How to Show Part Name Rather than Full Name in Order Templates
- How to Show the Category of a Pre-decorated Product in the Order Template
- How to Show the SKU Code of an Item in the Order Template
- How to Show the SKU Code of an Item in the Worksheet Template
- How to show the Coupon Code in the Order Template
- How to Include Payment Due Date in the Order Template
- How to Include Production Days in the Order Template
- How to Include the Supplier Product Name in the Worksheet Template
- How to Include the Current Date in the Order and Worksheet Templates
- How to Show the Brand Name of an Item in the Order Template
- How to Show the Shipping Method Name in the Purchase Order Template
- How to Show the Tracking URL in the Packing Slip Template
- How to Show the Tracking URL in the Order Template
- How to Show Notes for the Customer from an Artwork Approval in the Order Template\
- How to Include the Production Date in the Order Template;
- How to Include Custom Customer and Custom Company fields in the Order Template
- How to Include Custom Shipping Address fields in the Order Template
- How to Include the Store Group Name in the Order Template
- How to Identify Internal Notes from Public Notes in the Worksheet Template
- How to Include the list of used decoration processes in the Order Template
- How to Include a list of batch order numbers in the Production Worksheet
- How to Include notes set against a customer/company in the Production Worksheet
- How to Include the artwork job description in the Artwork Approval Form
- How to Include the customer details in the Artwork Approval Form of standalone artwork job
- How to Show all Product Views in the Order Template
- How to Show Invoice Variables in the Customer Account Statement Template
- How to Include the artwork approval requirement in the Order Template
Comments
0 comments
Please sign in to leave a comment.