Receipt code editor
You can customize the template for your printed receipts by using the Liquid editor in the Shopify admin. The files that make up your receipts contain Liquid, Shopify's templating language. You should only edit the code for your receipts if you know HTML and CSS, and have a basic understanding of Liquid.
On this page
Access the Liquid editor
You can change the receipt templates and the section templates that are used on your printed receipts. Receipt templates are the types of receipts that you print in your store. Section templates are parts of the receipts you print in your store. Sections can be reused by multiple receipts. You can edit your templates by using the Liquid editor:
Steps:
From your Shopify admin, go to Settings > Apps and sales channels.
From the Apps and sales channels page, click Point of sale.
Click Open sales channel.
Click Settings > Receipt Customization.
Click
...
> Edit code.Click Edit code.
Make the code edits that you want.
Click Save.
Edit your receipt templates
You can edit specific parts of your receipts.
Receipt objects
Property | Description |
---|---|
shop | Contains the store information. For example the store name. |
location | Contains the retail location information. For example, address and phone number. |
order | Contains the order data, including the line items, the discounts, the taxes, and the transaction information. |
Receipt filters
Property | Description |
---|---|
t | Translates predefined labels into the correct language. |
money | Formats the price in your location's currency. |
escape |
Escapes special characters in HTML, such as <> , ' , and & , and converts characters into escape sequences.
|
barcode | Generates a 1D barcode SVG. |
qrcode | Generates a 2D barcode SVG. |
Reset your receipt template
You can reset a template to the original version in the Liquid editor:
Steps:
From your Shopify admin, go to Settings > Apps and sales channels.
From the Apps and sales channels page, click Point of sale.
Click Open sales channel.
Click Settings > Receipt Customization.
Click
...
> Edit code.In the Receipts folder, click the Reset the file to default button next to the template that you want to reset.
Click Reset.