How to Show Price Per Unit on Barcode Labels
Overview
Yanet Barcode Labels allows you to display the price per unit of measurement on your product labels, such as $1/kg, $5/m, or $2/100g.
You can retrieve unit pricing information directly from Shopify or use product metafields to customize how the price per unit is calculated and displayed.
Step 1: Add the Price Element
- Go to Yanet: Barcode Labels → Templates.
- Open the template you want to edit.
- Add or select the Price element in your label layout.
- Enable Show Price Per Unit to display the price per unit on your label.
The unit price will follow Shopify's unit pricing information when available.

Step 2: Configure Price Per Unit Using Metafields
If you want to use custom product data, enable Use Metafields in the Price element settings.
Configure the following fields:
- Total Measure Metafield – Enter the metafield containing the actual quantity of the product. For example, enter
250for a 250g package. - Base Measure Metafield – Enter the metafield containing the reference quantity used for unit pricing. For example, enter
100to display the price per 100g. If left blank, the value defaults to1. - Measure Unit Metafield – Enter the metafield containing the measurement unit displayed after the quantity, such as
g,kg, orml.
Enter each metafield using the format namespace.key.

Step 3: Configure Currency Formatting
Use the Currency Format field to customize how the price is displayed.
The configuration follows your Shopify store's currency formatting.
Step 4: Save and Preview Your Template
After configuring the price settings:
- Review the Price element configuration.
- Save your template.
- Generate a label using a product with the relevant unit pricing or metafield data.
- Check the printed or generated label to ensure the price per unit displays correctly.
Example:
A product contains 250g and costs $5. You want to display its price per 100g.
Setting | Value |
|---|---|
Total Measure | 250 |
Base Measure | 100 |
Measure Unit | g |
Product Price | $5 |
Price per 100g | $2 |
Updated on: 30/10/2026
Thank you!
