Unit prices on Shopify: when they’re mandatory in Spain and how to set them up
Nico Bértolo · 2026-11-21
In short
- Spain’s Royal Decree 3423/2000 requires the price per unit of measure (kilo, litre, metre…) next to the selling price for products that state their quantity.
- Cosmetics and food supplements use 100 ml or 100 g; it isn’t needed under 50 g or 50 ml, for packs of different products not sold separately, or when it equals the selling price.
- On Shopify you set it in each variant’s pricing (total amount and base measure) and, on a 2.0 theme, it shows automatically on product, collection, cart and checkout pages.
A unit price on Shopify is that small line under the price (“€39.60/kg”, “€106.67/100 ml”) that many Spanish online stores don’t show. You see it on every supermarket label; online, almost never. It isn’t a design detail: in Spain it’s mandatory for much of what’s sold by weight or volume, and it also helps sell the larger sizes. Here’s what the rule says, the exceptions, how to turn it on in Shopify and what we’d check in your store before Black Friday.
Is a unit price mandatory for an online store in Spain?
Yes, for most packaged products that state their quantity. It’s set out in Royal Decree 3423/2000 of 15 December on price indication for products offered to consumers. Article 3 requires the selling price on every product and, on top of that, the price per unit of measure for products that must state their quantity (weight, volume, length or area).
The decree doesn’t distinguish between physical and online stores: it talks about products offered by traders to consumers. We read it the way any brand selling in Spain should: if the pack says “250 g”, the product page also needs its price per kilo. Enforcement sits with the regional governments and penalties come from consumer law (articles 5 and 6). We’re not lawyers: if your case is unusual, check with yours.
Three details people tend to miss:
- It’s the final price, VAT included (article 2). If the price changes, the unit price changes with it, sales included.
- It must sit in the same field of view as the selling price, be legible and not require the customer to ask (article 4). Hidden in an “Info” tab doesn’t count.
- It extends to advertising that mentions the selling price (article 3.5). If an email or an ad says “1 kg coffee for €32”, it applies there too.
Which unit: kilo, litre or 100 ml?
By default, kilogram, litre, metre, square metre or cubic metre, with a single unit per product category. Annex II sets specific units for some cases that matter a lot to ecommerce brands:
- 100 ml: Cosmetics: per 100 g or 100 ml. A 30 ml serum at €32 is €106.67/100 ml.
- 100 g: Food supplements: per 100 g or 100 ml. A 60-capsule tub weighing 45 g doesn’t need it: it’s under 50 g.
- 1 kg: Coffee, food and most other products sold by weight: per kilo. A 250 g bag at €9.90 is €39.60/kg.
Eggs (per dozen), washing-machine detergent (per wash) and pipe tobacco (per 100 g) also have their own units. If you sell candles, textiles or ceramics that aren’t sold by measure, it usually won’t apply: the decree targets products whose quantity is stated.
When don’t you need a unit price?
Article 3.3 and Annex I list the exceptions. The ones we see most on Shopify stores:
- When the unit price equals the selling price: a 1 kg bag at €32 already says €32/kg.
- Products under 50 g or 50 ml: minis, travel samples or a lip balm.
- Packs of different products in one package that aren’t sold separately. A bundle of serum, cream and eye cream with its own SKU fits here; a pack of three identical 250 g coffees doesn’t.
- Wines with a geographical indication or designation of origin, and spirits with a geographical name.
How to set up unit prices on Shopify
It’s built in: since 2 October 2025 it’s available worldwide, no app needed. You set it in each product or variant’s pricing:
- Open the variant: In Products, open the product (or the variant, if you have 250 g and 1 kg sizes) and, under Pricing, click “Unit price”.
- Enter the total amount: The pack’s real content and its unit: 250 g, 30 ml, 1.5 m. Whatever the label says.
- Choose the base measure: The one the rule asks for: 1 kg for coffee, 100 ml for cosmetics. Save.
- Do it in bulk: With many products, export the CSV and fill in “Unit price total measure”, “Unit price total measure unit”, “Unit price base measure” and “Unit price base measure unit”. Desktop only.
- Check where it shows: On Online Store 2.0 themes (Dawn and almost every current theme) it shows automatically on product, collection, cart and checkout. On an old (vintage) theme you need code changes. Check your order confirmation email too if it’s customised.
Two limits worth knowing. Each product or variant takes one unit price, and the base measure must be the same kind as the total (no millilitres to grams). And Shopify uses the same unit system across all markets: if you sell across Europe with Markets, everyone sees kilos and litres.
An example: unit prices sell, too
A specialty coffee store with two sizes: 250 g at €9.90 and 1 kg at €32. Today the page shows two buttons and a price that jumps from 9.90 to 32 when you switch. The customer sees “more expensive” and takes the small bag. With unit pricing, under each price you get €39.60/kg and €32/kg. The big bag is 19% cheaper per kilo and nobody has to explain it. What we’d add: the price per kilo inside the size selector itself, not only under the price.
It’s the same logic we use to raise average order value: let customers see for themselves that the larger size pays off. And it’s one of the gaps we keep finding when we look at why a product page isn’t selling: information the customer takes for granted and can’t find.
Unit prices on Black Friday: what to check
If you discount by changing the variant price (keeping the old one as compare-at price), Shopify recalculates the unit price on its own. If you use a code or an automatic discount, place a test order and check what the cart shows. And nobody handles what’s outside the store for you:
- Emails and ads quoting a price for a product with a stated quantity: add the unit price on the same line.
- Banners and images with the price baked in: usually the first thing forgotten.
- New campaign products: if you create a special Christmas size, fill in both fields before publishing it.
What we’d do this week
- List what has a quantity: Export your products and flag those with a weight or volume on the label. Drop anything under 50 g or 50 ml and packs of different products.
- Fill in the CSV: Total amount and base measure for each variant: kilo, litre or 100 g/100 ml depending on the category. Import and check three pages by hand.
- Check on mobile: Open a product page, a collection and the cart on your phone. The unit price should read without zooming, right next to the price.
- Review the campaign: Black Friday emails and ads with prices: add the unit price before scheduling them.
Does your product page show everything a customer needs to decide? We review your product page, cart and checkout and tell you what to change first. Book a call
Sources
- Real Decreto 3423/2000, de 15 de diciembre, por el que se regula la indicación de los precios de los productos ofrecidos a los consumidores y usuarios · BOE
- Displaying unit prices for products · Shopify Help Center
- Unit pricing is now available globally · Shopify Changelog
Frequently asked questions
Is a price per kilo mandatory for an online store in Spain?
For products that state their quantity, yes: Royal Decree 3423/2000 requires the price per unit of measure next to the selling price, and it doesn’t distinguish between physical and online stores. There are exceptions, such as products under 50 g or 50 ml.
Which unit do cosmetics use?
Per 100 g or 100 ml, under Annex II of the decree. The same goes for food supplements.
Does Shopify calculate the unit price automatically?
Yes. You enter the pack’s total amount and the base measure, and Shopify calculates the unit price from the variant’s price. If you change the variant price, it recalculates.
Why isn’t the unit price showing on my product page?
Usually the variant is missing one of the two fields, or the theme is an old (vintage) one: Online Store 2.0 themes show it automatically; older ones need it added in code.
Do bundles need a unit price?
Not if the bundle combines different products that aren’t sold separately. Yes if it’s several units of the same product with a stated quantity, such as three 250 g bags of coffee.