Customizing Order Printer templates
You can create and customize up to 15 templates for the Order Printer app in your Shopify admin. By default, the Order Printer app includes two templates:
- 发票- a basic invoice that you can send to a customer
- Packing slip- a printout of your shop address and your customer's shipping address
On this page
Create a new Order Printer template
Creating a new Order Printer template requires you to be familiar with HTML, CSS, and Liquid. Shopify Theme Support can help with minor adjustments within the scope of theShopify Design Policy.
Steps:
From your Shopify admin, clickSettings>Apps and sales channels.
ClickOrder Printer打开应用程序。
ClickManage templates.
ClickAdd template.
Enter a name for your new template in theNamefield.
Add HTML, CSS, or Liquid code in theCodefield to create your template.
When you're done, clickSave.
Edit an Order Printer template
Editing your Order Printer templates requires you to be familiar with HTML, CSS, and Liquid. Shopify Theme Support can help with minor adjustments within the scope of theShopify Design Policy.
Steps:
From your Shopify admin, clickSettings>Apps and sales channels.
ClickOrder Printer打开应用程序。
ClickManage templates.
Click the name of the template that you want to edit.
Make your changes to the template by adding or editing HTML, CSS, or Liquid code in theCodefield. To preview examples of template customizations, refer toExample template customizations.
When you're done, clickSave.
Example template customizations
The following examples explain some common ways to customize Order Printer templates:
- Add your logo to Order Printer templates
- Make table widths 100%
- Display product thumbnails
- Add order details
Example: Add your logo to Order Printer templates
It should look like this in the HTML:
Example: Make table widths 100%
To make your tables have borders and stretch to 100% width, add atable-tabular
class to your table:
class="table-tabular">...
Example: Display product thumbnails
To include product thumbnails, insert this code into your template:
Add order details
You can add order details to your templates, such as the name, quantity, and cost of items purchased. To add order details to your template:
From your Shopify admin, clickSettings>Apps and sales channels.
ClickOrder Printer打开应用程序。
ClickManage templates.
Click the name of the template that you want to edit.
Use Liquid variables to add order details and HTML to add formatting. For example, the
{{ line_item.price | money }}
prints the price of the item.When you're done, clickSave.
For example, Nyla wants to edit her packing slip template to include a list of the items being shipped. She adds the following code to the bottom of herPacking slip
template in the Order Printer app:
Quantity Item {% if show_line_item_taxes %} Taxes {% endif %} Price {% for line_item in line_items %} {{ line_item.quantity }} x {{ line_item.title }} {% if line_item.tax_lines %} {% for tax_line in line_item.tax_lines %} {{ tax_line.price | money }} {{ tax_line.title }}
{% endfor %} {% endif %} {{ line_item.price | money }} {% endfor %}
As a result, Nyla's packing slips now include a table that lists the items purchased.