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
- Open the theme editor on a food product page.
- In Product information, click Add block and choose Feeding calculator.
- 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.
- Set Only show on products tagged and tag your products to match.
- 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:
| Option | Reads | Use 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.
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.
| Setting | What to put in it |
|---|---|
| Pet weight — From / To | The weight band, in your chosen weight unit. Leave To empty on the last row for an open-ended top band. |
| Portion per day — From / To | How 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–5 | 45–85 |
| 5–11 | 85–150 |
| 11–25 | 150–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
| Setting | Default | Notes |
|---|---|---|
| Heading | How long will a bag last? | |
| Subheading | Tell us your pet's weight and we'll work out the cost per day. | |
| Only show on products tagged | empty | See Scoping. |
| Pack size option name | Size | The variant option that holds your pack sizes. Often "Size", sometimes "Weight" or "Bag size". |
| Weight unit | Kilograms (kg) | The unit the shopper enters their pet's weight in. |
| Portion unit | Grams (g) | The unit your guide's daily portions are in. Grams or ounces. |
| Read pack size from | Variant shipping weight | See Where pack size comes from. |
| Disclaimer | A 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 see | Cause |
|---|---|
| Nothing on the storefront, a note in the editor | The product doesn't carry any of the tags in Only show on products tagged. |
| The guide shows but no pack comparison | No 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 comparison | That variant has no weight or unit price measurement set. |
| "Ask your vet" for a normal weight | The 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 size | Not a bug — your larger pack genuinely costs more per gram. Worth reviewing your pricing. |
| Only one pack size listed | The product has one variant, or only one variant differs by the pack size option. |