> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.yanet.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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.
![](https://storage.crisp.chat/users/helpdesk/website/-/3/7/f/d/37fde77105fa8400/image_173ekcs.png)

###### 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`.
![](https://storage.crisp.chat/users/helpdesk/website/-/3/7/f/d/37fde77105fa8400/image_plqlog.png)

###### 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.