Articles on: Yanet Retail Barcode Labels

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
  1. Go to Yanet: Barcode Labels → Templates.
  2. Open the template you want to edit.
  3. Add or select the Price element in your label layout.
  4. 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 250 for a 250g package.
  • Base Measure Metafield – Enter the metafield containing the reference quantity used for unit pricing. For example, enter 100 to display the price per 100g. If left blank, the value defaults to 1.
  • Measure Unit Metafield – Enter the metafield containing the measurement unit displayed after the quantity, such as g, kg, or ml.

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:

  1. Review the Price element configuration.
  2. Save your template.
  3. Generate a label using a product with the relevant unit pricing or metafield data.
  4. 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


Tip: Make sure the metafields are created and populated with the correct values for your products before using them in the label template.

Updated on: 30/10/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!