Info Cards and Product Data
SportRx Product Page Info cards 7 Oct 2026

How info cards will use product information

Cards keep their design and wording. Where a card needs a product detail, its text names the product field, and the page fills in that product's value.

What we landed on

One card, many products, each showing its own details

How it connects

A placeholder in the card points at a product field

In a card's Card Data field, a product field's name between three colons on each side is a placeholder. When the page shows the card, it replaces the placeholder with that product's value for the field. Card Data without placeholders works exactly like the description does today.

Card Data, as typed

Lens curve: :::sportrx.base_curve::: base.

The product's field

Base curve: 6

What shoppers see

Lens curve: 6 base.

The card is written once. Every product that has it shows its own number, and if a product's base curve is corrected, its card updates on its own.

An example

The same card on three products

Card wording below is illustrative.

A sport sunglass
Base curve 8 · card on its list
Advanced Base Lens Lens curve: 8 base. Shaped for clear vision from edge to edge.
An everyday eyeglass
Base curve 4 · card on its list
Advanced Base Lens Lens curve: 4 base. Shaped for clear vision from edge to edge.
A ski goggle
No base curve · card not on its list
No base curve card

The goggle never shows a half-filled “Lens curve: base.” card, because it was never given the card. Products without a base curve simply aren't assigned it.

It works the same for any field. If activities ever move into a card, Card Data reading “Perfect for: :::product.list_activities:::” would show each product's own list, e.g. “Perfect for: Biking, Running, Fishing”. We tested exactly this on the staging store.

One card or several

One base curve card can serve every base curve product

Only the placeholder changes from product to product. So one card works for all base curve products as long as everything else on it is the same: the wording around the placeholder, the image, the pop-up and the colours. If any of that needs to differ for some products, duplicate the card, make the change, and give the copy to just those products.

Advanced Base LensInfo Card
Heading
Advanced Base Lens
Card Data
Lens curve: :::sportrx.base_curve::: base. Shaped for clear vision from edge to edge.
Image
lens-curve.jpg
Pop-up Content
How base curve affects fit and vision…
Used on: every product with a base curve, about 2,100 models. Each shows its own number.
Advanced Base Lens – Sport WrapDuplicate
Heading
Advanced Base Lens
Card Data
Lens curve: :::sportrx.base_curve::: base. Wraps the face for wider coverage in motion.
Image
wrap-lens-curve.jpg
Pop-up Content
How base curve affects fit and vision…
Used on: only the wraparound sport frames, in place of the standard card. Highlighted lines are what changed.

Both cards still fill in each product's own base curve. The duplicate exists only because its wording and image are different. Make as few copies as the differences require, since each copy is one more card to keep up to date. Card names and wording here are illustrative.

What decides what shows

Two checks, in order

SituationWhat the shopper sees
The card isn't on the product's card listNot shown
The card list always decides first.
The card is on the list and the product has the valueShown
With the product's value filled in.
The card is on the list, but the product's field is emptyNot shown
A backup. Normally this can't happen, because a product without the detail isn't given the card. It covers a value being removed later.
The card has no placeholders, e.g. Free ShippingShown
Whenever it's on the list, exactly as written.

A question for you: when a card is on a product but that product's field is empty, should the card show general default wording instead of hiding? We've planned for it to hide, because these cards exist to give details specific to that product, and a general card without the product's own detail says little. If there are cards where general wording would still help, tell us which.

Getting started

The import sets up every product once

1. Agree the standard cards

Together we define the set of cards used across many products, with their wording, images and placeholders.

2. Agree who gets which card

Rules by product type, brand or a product detail. For example: every sunglass and eyeglass gets the base curve card, and only products with a base curve.

3. The import places them

The import adds the right cards to every product at once, so nobody assigns cards by hand for the existing catalog.

4. Then it's yours

After launch, the team adds or removes cards on any product freely, and can create one-off cards for unique situations alongside the standard set.

Day to day

Who changes what

Correct a product detail

Edit the product's field, e.g. its base curve. Every card on that product that uses it updates.

Reword a card

Edit the card once. Every product that has it changes.

Add a new kind of card

Create the card, with placeholders for any product details, then add it to the products it belongs on. That can be done in bulk from a spreadsheet.

Add a product

Fill in its fields and give it its cards, typically the same standard cards as similar products.

Handle a special case

Create a one-off card and add it to just the products that need it.

The Card Data field will carry short instructions right below it in the admin, on how to write a placeholder, with an example. Placeholders work the same in the card's pop-up.