Feeding & refill calculator

A shopper enters their pet's weight; every pack size shows how long it lasts and what it costs per day, with the cheapest per day flagged and one click to switch to it.

That comparison is the point. On a normal product page the gap between a 3 kg and a 12 kg bag is invisible — the big bag just looks expensive. Priced per day it is usually 20–25% cheaper, and the shopper can see it.

Add the block

  1. Open the theme editor on a food product page.
  2. In Product information, click Add block and choose Feeding calculator.
  3. Position it above Buy buttons.

It arrives with four example guide rows so you can see the layout. Replace them with your own feeding guide.

Two things are required before it works
  1. Set Only show on products tagged and tag your products to match.
  2. Give your variants a pack size — see Where pack size comes from. Without it the comparison has nothing to compare.

Scoping it to the right products

Same mechanism as the fit finder. Enter product tags separated by commas; the block only renders on products carrying at least one of them.

food, treats, litter

Dry food, wet food and treats usually need different guides. Add one block per guide, each scoped to its own tag.

Where pack size comes from

You never type pack sizes into the theme. The block reads them from data your store already holds, chosen with Read pack size from:

OptionReadsUse it when
Variant shipping weight Each variant's weight field Your shipping weights are the product weight. Accurate for a bag of kibble, wrong if your weights include heavy packaging.
Unit price quantity Each variant's unit price measurement You already fill in unit pricing (required in the EU and several other markets). This is the more precise of the two.

Both are converted to a common unit internally, so a variant measured in kilograms and one measured in grams compare correctly. Litres and millilitres are handled too, for wet food.

Check this first if the numbers look wrong

A variant with no weight and no unit price measurement can't be included in the comparison. If a pack size is missing from the list, that variant is what to check in the admin.

Filling in your feeding guide

Each row of your guide is one Guide row block inside the feeding calculator, added from inside the calculator itself.

SettingWhat to put in it
Pet weight — From / ToThe weight band, in your chosen weight unit. Leave To empty on the last row for an open-ended top band.
Portion per day — From / ToHow much to feed a pet in that band per day, in your chosen portion unit.

Copy the numbers straight off your packaging. A typical dry dog food guide looks like this:

Pet weight (kg)Per day (g)
2–545–85
5–1185–150
11–25150–280
25+280–420

Where a row gives a range, the calculation uses the midpoint, and the shopper is shown the range — so the figures stay honest about being a guide rather than a prescription.

Feeding calculator settings

SettingDefaultNotes
HeadingHow long will a bag last?
SubheadingTell us your pet's weight and we'll work out the cost per day.
Only show on products taggedemptySee Scoping.
Pack size option nameSizeThe variant option that holds your pack sizes. Often "Size", sometimes "Weight" or "Bag size".
Weight unitKilograms (kg)The unit the shopper enters their pet's weight in.
Portion unitGrams (g)The unit your guide's daily portions are in. Grams or ounces.
Read pack size fromVariant shipping weightSee Where pack size comes from.
DisclaimerA guide only. Ask your vet about the right amount for your pet.Shown under the results. Adjust to match your own wording, but keep something here.

How packs are compared

Food is usually sold as size × flavour, which makes a naive comparison useless — nobody wants a 2 kg chicken bag priced against a 12 kg salmon one.

So only the pack-size option varies. Every other option stays on whatever the shopper has currently selected, and the list redraws when they change flavour. What they see is always the same recipe at different sizes.

Cost per day uses the shopper's active market currency, so a Canadian shopper sees Canadian dollars rather than your shop's default currency.

What it deliberately will not do

Two things were left out on purpose, and support requests asking for them will get this same answer:

  • It never extrapolates past your guide. A pet weight your rows don't cover produces "ask your vet", not an estimate. This is stricter than the fit finder, where rounding a harness up is harmless — guessing a feeding amount is not.
  • There is no activity or life-stage multiplier. Applying a coefficient you never sanctioned would mean the theme inventing nutritional advice under your brand. If you have puppy and adult guides, add two blocks scoped to different tags.

Shared with the fit finder

The pet's weight is remembered in the browser and shared with the fit finder, so a shopper who used one arrives at the other with the field already filled. Stored on that device only; nothing is sent anywhere.

Troubleshooting

What you seeCause
Nothing on the storefront, a note in the editorThe product doesn't carry any of the tags in Only show on products tagged.
The guide shows but no pack comparisonNo variant has a usable pack size. Check variant weights, or switch Read pack size from to unit price quantity.
One pack size missing from the comparisonThat variant has no weight or unit price measurement set.
"Ask your vet" for a normal weightThe weight falls in a gap between two guide rows, or below the first row. Check your bands are continuous.
Cost per day rises with pack sizeNot a bug — your larger pack genuinely costs more per gram. Worth reviewing your pricing.
Only one pack size listedThe product has one variant, or only one variant differs by the pack size option.