---
title: "Displaying unit prices in the feed"
url: https://help.feedyio.com/en/articles/10186268-displaying-unit-prices-in-the-feed
collection: "Product feeds"
updated: 2025-08-14
language: en
---

# Displaying unit prices in the feed

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 in the product feed by default for predefined feed.

#   
Add unit prices to your product

1.  From your Shopify admin, go to [**Products**](https://admin.shopify.com/products).
    
2.  Click the product that you want to edit.
    
3.  Optional: If your product has variants, then in the **Variants** section, click the variant that you want to edit.
    
    ![](https://staticfiles.gleap.io/helpcenter/6894973db75c48937a420efd/20250807214700_6955.png)
4.  In the **Pricing** section, select **Add unit price**
    
    ![](https://staticfiles.gleap.io/helpcenter/6894973db75c48937a420efd/20250807214700_1052.png)
5.  In the **Total product measurement** field, enter in your product's total measurement, and then select the unit of measurement.
    
    ![](https://staticfiles.gleap.io/helpcenter/6894973db75c48937a420efd/20250807214700_1167.png)
6.  Optional: If you want to change the default base measure, then in the **Base measure** field, add your new base measure, and then select a unit of measurement. For example, for a product weighing 200 g, you might select a base unit of 1 kg.
    
7.  Click **Save**.
    

# Display unit prices on your product feeds

## Predefined feeds

For predefined feeds, the base prices are automatically set directly within the feed. Adjustments to the base price can be made through the additional fields.

## Custom XML feed

You can add the base price using Liquid by utilizing the following variables:

**Show unit price**

```javascript
#{{ variant.unit_price }}
result: 19.99
```

**Show full base price**

```javascript
#{{ variant.base_price_reference_quantity }}
result: €19.99 / 100 kg
```

**Amount of the basic quantity** (The measure and dimension of product as it is sold)

```javascript
#{{ variant.base_price_quantity }}
result: 1500
```

**Unit of the basic quantity**

```javascript
#{{ variant.base_price_unit }}
result: g
```

**Amount and Unit of the basic quantity**

```javascript
#{{ variant.base_price_quantity_unit }}
result: 1500 g
```

**Reference Price Quantity**

```javascript
#{{ variant.base_price_reference_quantity }}
result: 100
```

**Reference Price Unit**

```javascript
#{{ variant.base_price_reference_unit }}
result: g
```

**Reference Price Quantity + Unit**

```javascript
#{{ variant.base_price_reference_quantity_unit }}
result: 100 g
```

## CSV Feed

In the CSV feed, you can use Liquid code, or you can find individual variants in Shopify values.
