Creating and customizing Shopify Order Printer templates
You can customize your templates in many ways and create your own templates. The Shopify Order Printer app supports templates made with HTML, CSS, and Liquid variables. Before you customize your templates, make sure to familiarise with the Liquid variables and filters reference for Shopify Order Printer for all supported template customizations.
Review the following examples to learn how you can customize Shopify Order Printer templates.
On this page
Add your logo to a template
You can add your logo to your template.
Steps:
- From your Shopify admin, go to Content > Files.
- Click Upload files, and then select the image file that you want to upload.
- To copy the URL for your logo image, click the Link icon.
- Click Settings > Apps and sales channels.
- Click Order Printer.
- Click Templates.
- Click the name of the template that you want to edit.
- In the code editor, paste the following code block:
- Replace
YOUR_IMAGE_URL_HERE
in the code with your image URL. - Optional: To align your logo, change the
text-align
value toleft
,right
, orcenter
. - Optional: To adjust your logo width, change the
width
value to a larger or a smaller value, such as8em
or2em
. - Optional: To preview your template, click Preview.
- Click Save.
Example:
Review the following example of how your HTML should display after you add your logo to your template:
Add images to a template
You can add images to your template.
Steps:
- From your Shopify admin, go to Content > Files.
- Click Upload files, and then select the image file that you want to upload.
- To copy the URL for your image, click the Link icon.
- Click Settings > Apps and sales channels.
- Click Order Printer.
- Click Templates.
- Click the name of the template that you want to edit.
- In the code editor, paste the
<img src=”Image Source” />
code block. - Replace
Image Source
in the code with your image URL. - Click Save.
Make table widths 100%
You can add borders to your table and stretch it to 100% width. You need to add the table-tabular
class to your table.
Steps:
- From your Shopify admin, click Settings > Apps and sales channels.
- Click Order Printer.
Click Open app.
Click Templates.
Click the template that you want to edit.
In the code editor, find the table that you want to edit, and then add the
table-tabular
class to your table.Optional: To preview your template, click Preview.
Click Save.
Example:
Display product thumbnails
You can add product thumbnails to your order template. You need to insert a custom code block into your template.
Steps:
- From your Shopify admin, click Settings > Apps and sales channels.
- Click Order Printer.
Click Open app.
Click Templates.
Click the template that you want to edit.
Add the
liquid {{ line_item.product.featured_image | product_img_url: 'thumb' | img_tag }}
code block to your template.Optional: To preview your template, click Preview.
Click Save.
Add order details
You can add order details to your template, such as the name, quantity, and price of items purchased.
Steps:
- From your Shopify admin, click Settings > Apps and sales channels.
- Click Order Printer.
Click Open app.
Click Templates.
Click the template that you want to edit.
In the code editor, use se Liquid variables to add order details and HTML to add formatting. For example, using the
{{ line_item.price | money }}
displays the price of the item.Optional: To preview your template, click Preview.
Click Save.
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 her Packing slip template in the Shopify Order Printer app. As a result, Nyla's packing slips now include a table that lists the items purchased.
Add a barcode to a template
You can add a barcode to your template
Steps:
- From your Shopify admin, click Settings > Apps and sales channels.
- Click Order Printer.
Click Open app.
Click Templates.
Click the template that you want to edit.
Add the
<s-barcode value="a" />
code block to your template.Replace the `` value with your barcode's text value.
Optional: To preview your template, click Preview.
Click Save.
Add a QR code to a template
You can add a QR code to your template.
Steps:
- From your Shopify admin, click Settings > Apps and sales channels.
- Click Order Printer.
Click Open app.
Click Templates.
Click the template that you want to edit.
Add the
<s-barcode type="qrcode" value="" />
code block to your template.Replace the `` value with your QR code's text value.
Optional: To preview your template, click Preview.
Click Save.
Using a Google font in a template
To use a Google font in your template, paste the following code to your template, and then replace FontName
variable with the name of your Google font:
Increasing the font size
To increase the font size in your template, paste the following code into your template, and then adjust the 14
number with a larger or smaller value:
To increase the font size of your headings in your template, paste the following code into your template, and then adjust the values next to the heading:
If you imported your templates from the legacy Order printer app, then you can increase your font size using the following code block: