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, click 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 Edit code dialogue, click Edit code.

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. In the Liquid editor, click the template that you want to restore.
  2. In the template list, click the Reset to default button next to the template you want to reset.
  3. In the Reset the file to default window, click Reset.
Ready to start selling with Shopify POS?Try it free