EU compliance6 min read

Show %RI on a Shopify Nutrition Table Without Writing Liquid

Show % reference intake (%RI) on a Shopify nutrition table without Liquid math: enter values per 100 g, set a portion size and turn on %RI. Steps, maths and FAQ.

In this guide
  1. What is %RI on an EU nutrition table?
  2. How is %RI calculated?
  3. Why does Liquid maths on metafields fail?
  4. How do I show %RI without writing Liquid?
  5. Which way should I choose?
  6. What should I check before the table goes live?
  7. FAQ
  8. About Custos: EU Compliance
  9. Turn on %RI for one product first

To show % reference intake (%RI) on a Shopify nutrition table without writing Liquid, enter the nutrition values per 100 g or 100 ml, add a portion size if you want a per-portion column, and switch on %RI in a label app’s form. In Custos: EU Compliance, the nutrition table per 100 g or 100 ml can have an optional per-portion column and %RI, shown by the Food information theme block. No metafield maths in your theme is needed.

This guide explains what %RI is, why Liquid maths on metafields breaks, how to set it up step by step, and what to check before the table goes live.

Written by the StoreFleet team. The first draft was AI-assisted and a person reviewed it. This is general information, not legal advice, and following it does not guarantee compliance. Points marked (verify) are ones we have not checked line by line. Check them against the current consolidated text of Regulation (EU) No 1169/2011 on EUR-Lex, or with a qualified adviser, before you rely on them.

What is %RI on an EU nutrition table?

%RI (percentage of reference intake) shows each value as a share of what an average adult needs in a day. In German it is often written as “% der Referenzmenge” and sometimes called NRV, although NRV is the term for vitamins and minerals. The reference intakes for energy and the main nutrients are set in Regulation (EU) No 1169/2011, Annex XIII, Part B:

Nutrient Reference intake (average adult)
Energy 8 400 kJ / 2 000 kcal
Fat 70 g
Saturates 20 g
Carbohydrate 260 g
Sugars 90 g
Protein 50 g
Salt 6 g

%RI is optional for energy and these nutrients. If you show it, the table also needs the statement “Reference intake of an average adult (8 400 kJ/2 000 kcal)” (Article 32 (verify)). Our guide to the EU nutrition declaration format covers the mandatory part of the table: order, units and the per 100 g basis.

How is %RI calculated?

The maths is one division per row: the amount, divided by the reference intake, times 100. For example, 6 g of fat in a portion is 6 ÷ 70 × 100 = about 9% of the reference intake.

Here is a 40 g portion of a granola with these values per 100 g, worked out by hand:

Per 100 g Per 40 g portion %RI per portion
Energy 1 850 kJ / 440 kcal 740 kJ / 176 kcal 9%
Fat 15 g 6 g 9%
of which saturates 3 g 1.2 g 6%
Carbohydrate 62 g 24.8 g 10%
of which sugars 18 g 7.2 g 8%
Protein 10 g 4 g 8%
Salt 0.3 g 0.12 g 2%

The maths is easy. Keeping it right on every product page, for every product, in a theme template is the hard part.

Why does Liquid maths on metafields fail?

The usual do-it-yourself route stores each value in a product metafield and divides it in the theme with Liquid filters such as divided_by and times. Merchants who try it, as in this Shopify Community thread on NRV calculation, run into the same problems:

  • The template doesn’t parse. One misplaced bracket or quote in a filter chain breaks the section, and the error appears in the theme editor, not where you edit the values.
  • Text instead of numbers. A value saved as “15 g” or “15,0” is text, so the maths either fails or gives a wrong result.
  • Integer division. In Liquid, dividing a whole number by a whole number rounds down to a whole number, so 6 divided by 70 gives 0 unless one side is a decimal like 70.0.
  • It belongs to one theme. A theme update or a new theme means copying and testing the code again.

None of this is wrong in principle, but it is developer work. If you have no developer, a block that does the calculation is simpler.

How do I show %RI without writing Liquid?

With Custos: EU Compliance, you fill in one form per product and add one block:

  1. In the app, open the label form for the product.
  2. Enter energy (kJ and kcal), fat, saturates, carbohydrate, sugars, fibre, protein and salt per 100 g or 100 ml from your own specification or lab results.
  3. Optional: add a portion size, for the per-portion column.
  4. Switch on %RI in the same form.
  5. Add the Food information block to the product template of an Online Store 2.0 theme in the theme editor, if it is not there yet.
  6. Open the product page and compare the table with your pack.

If you set up many products at once, the app can also import the label details from a CSV file.

Which way should I choose?

Liquid on metafields Custos: EU Compliance
Who sets it up Someone who edits theme code You, in a form
Per-portion column and %RI Written and tested by hand in Liquid Optional, switched on in the form
Ingredients with bold allergens, operator Separate fields and code In the same form
Theme code Your own Liquid None: the Food information block

Whichever way you choose, the values you enter decide what the shopper sees. Custos: EU Compliance does not work out your nutrition values from a recipe: check them against your lab or supplier data.

What should I check before the table goes live?

  • Every row uses the same basis. All values per 100 g, or all per 100 ml, not a mix with per-portion values copied from a pack. See why a nutrition label won’t save for the usual mix-ups.
  • The portion size matches the pack. A portion on the product page that differs from the printed label confuses shoppers.
  • The table shows on the page. Open the product page and check the columns. If values don’t show at all, see nutrition and allergen metafields not showing.

FAQ

Is %RI mandatory on an EU nutrition table?

No. %RI for energy and the main nutrients is optional. If you show it, add the reference intake statement for an average adult (Article 32 (verify)).

Can I show %RI per portion only?

The per 100 g or 100 ml values stay mandatory. Showing %RI per portion, alongside them, is allowed under Article 33 (verify).

Is there a %RI for fibre?

No. Annex XIII, Part B sets no reference intake for fibre, so fibre has no %RI.

Is NRV the same as %RI?

Not quite. NRV (nutrient reference value) is the term for vitamins and minerals, set in Annex XIII, Part A. %RI covers energy, fat, saturates, carbohydrate, sugars, protein and salt.

Do I need to remove my old Liquid code?

If your theme already shows a nutrition table from metafields, remove or hide that section once the block shows the label, so the page doesn’t show two tables.

About Custos: EU Compliance

Custos: EU Compliance is a Shopify app for food shops selling into the EU. It shows the food information Regulation (EU) No 1169/2011 requires on your product pages: a nutrition table, ingredients with allergens in bold, and the operator. You enter the values from your own specification or lab results and add the Food information block to the product template in the theme editor, with no theme code. Read more on the Custos: EU Compliance app page.

Turn on %RI for one product first

Set a portion size and turn on %RI for one product, check the live page against your pack, then do the rest. To show the nutrition table with %RI, bold allergens and operator details on your product pages, install Custos: EU Compliance from the Shopify App Store.