Portion calculator and subscriptions
Portion calculator
Add the Portion block to the product template. On food products it shows:
- grams per day
- how many days a pack lasts
- price per day
It follows the selected variant and subscription plan. When the shopper has a pet profile, the block fills in weight, age and activity. Otherwise the shopper types them in.
| Owner | Key (namespace lilya) | Type |
|---|---|---|
| Product | kcal_per_100g | Decimal |
| Variant | pack_grams | Integer: grams in one pack |
| Variant | pack_count | Integer: packs in the variant |
Products without kcal_per_100g don't show the block, so treats and accessories stay clean.
The portion is a guide. It's based on resting energy needs (70 × kg^0.75) and common factors for age and activity, and you can use toppers at a quarter portion. Add your own feeding advice in Theme settings → Portion calculator → Feeding disclaimer.
The Portion table section shows the full table by weight and activity level on a product or page template. It highlights the row closest to the shopper's pet.
Subscriptions
Patik supports Shopify selling plans:
- Install a subscription app, for example Shopify Subscriptions, and create a plan.
- Add the Purchase options block to the product template.
Shoppers choose one-time purchase or a plan. The product price, the sticky add-to-cart bar, quick view and the portion's price per day follow their choice, and the link keeps the chosen plan.