Skip to content

Pet profile and fit badges ​

Shoppers add up to four pets with the Add a pet button in the header. The form has three short steps:

  1. Species and name.
  2. Weight. When neck and size fit is on, also neck size and size.
  3. Birth month, activity level, and ingredients to avoid.

Profiles are saved in the shopper's browser only. Nothing is sent to your store or to an app, and no customer account is needed.

What changes with a pet ​

  • Headings that contain [pet] show the pet's name, for example "Fresh food for [pet]". Without a profile, the fallback text from the section is shown, for example "your dog".

  • Fit badges on product cards and product pages:

    • "Good for Luna"
    • "M fits Luna"
    • "Contains chicken · Luna avoids it"
    • "Not for Luna: weight"

    Badges use words, not only color.

  • Collection pages get an "Only what fits Luna" switch and a "Best fit first" sort when you add the Pet filter block.

  • Sizes: on products with a size option, the matching size is preselected.

Product data ​

Create these product metafields in Settings → Custom data → Products. Use the namespace lilya.

KeyTypeMeaning
pet_speciesList of single line textdog, cat. Empty means every species.
pet_age_min_months, pet_age_max_monthsIntegerAge range in months
pet_weight_min_kg, pet_weight_max_kgDecimalWeight range in kg
pet_sizesList of single line textSizes the product comes in: xs, s, m, l, xl
pet_containsList of single line textIngredients, for example chicken, grain. Use the same words as your "avoid" options.

A product with none of these fields shows no badge, so you can add data gradually.

How a match is decided ​

  1. The species isn't in the list → Not for.
  2. The age or weight is outside the range → Not for.
  3. The product has sizes and none fits → Not for.
  4. The product contains something the pet avoids → Contains … avoids it.
  5. Otherwise → Good for, plus the fitting size when the product has sizes.

Size comes from weight when the shopper doesn't pick one. Change the weight thresholds in Theme settings → Pet profiles.

Thoughtful tools for better commerce.