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.

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:

  1. From your Shopify admin, go to Settings > Apps and sales channels.

  2. From the Apps and sales channels page, click Point of sale.

  3. Click Open sales channel.

  4. Click Settings > Receipt Customization.

  5. Click ... > Edit code.

  6. Click Edit code.

  7. Make the code edits that you want.

  8. Click Save.

Edit your receipt templates

You can edit specific parts of your receipts.

Receipt objects

Description of receipt objects
PropertyDescription
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

Description of receipt filters
PropertyDescription
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:

  1. From your Shopify admin, go to Settings > Apps and sales channels.

  2. From the Apps and sales channels page, click Point of sale.

  3. Click Open sales channel.

  4. Click Settings > Receipt Customization.

  5. Click ... > Edit code.

  6. In the Receipts folder, click the Reset the file to default button next to the template that you want to reset.

  7. Click Reset.

Can’t find the answers you’re looking for? We’re here to help.