Displaying unit prices

If you sell products in quantities or measurements, then you might need to display the price per unit for certain products. When you enter a unit price for a product, the unit price is displayed on the product pages, collection pages, cart page, checkout pages, and order confirmation notifications.

Add unit prices to your product

Show unit prices on your online store

Sectioned and non-sectioned themes

The steps for this tutorial differ depending on whether you are using a sectioned or a non-sectioned theme. A sectioned theme is a newer theme that lets you drag and drop to arrange the layout of your store's pages.

To figure out whether your theme supports sections, go to the theme's Edit code page. If there are files in the Sections directory, you are using a sectioned theme. Non-sectioned themes were released before October 2016, and do not have files in the Sections directory.

If you are using a sectioned theme, then click the Sectioned themes button and follow the instructions. If you are using an older, non-sectioned theme, then click the Non-sectioned themes button and follow the instructions.

Editing your theme

Follow the instructions to backup your theme and start editing the code for your theme.

Select your theme

The steps for this customization vary depending on your theme. Click the button for your theme before following the instructions below:

Show unit prices in your order notifications

If you have added unit prices to your product but your unit prices are not appearing in your order confirmation notifications, then you might need to update your order notification template.


  1. From your Shopify admin, go to Settings > Notifications.

  2. Click Order confirmation.

  3. Add the following snippet to the template:

  {%- if line_item.unit_price_measurement -%}
    {{ line_item.unit_price | money }}
    {%- if line_item.unit_price_measurement.reference_value != 1 -%}
      {{- line_item.unit_price_measurement.reference_value -}}
    {%- endif -%}
    {{ line_item.unit_price_measurement.reference_unit }}
  {%- endif -%}
  1. Click Save.

Ready to start selling with Shopify?

Try it free