O Radian 3.0 chegou — bundles, vitrine de categorias e animação cinematográfica.Ver novidades

Display variants as separate products

Display variants as separate products shows each color of a product as its own card, so shoppers see every color without opening the product. It can split by another option too, such as size or material. In your admin it stays one product, so its inventory, reviews and URL don't change.

This feature is available from Radian 4.2. It is off until you add it, and your other pages stay as they are.

Before and after

The same collection, with the same products. Before, each product has one card, so shoppers see one color until they hover the card or open the product.

Before: one card for each product.
Before: one card for each product.

After, each color has its own card, with its own image, name, price and link.

After: one card for each color.
After: one card for each color.

Before you start

Give each color its own image: in Products, open the product and add an image to its variants. A variant without an image uses the product's first image, so several cards would look the same.

How to set it up

Step 1: Add the block

  1. In the theme editor, open a collection page.
  2. Select Collection product grid and click Add block.
  3. Choose Display variants as separate products.
The block in Collection product grid.
The block in Collection product grid.

Each collection template has its own blocks. Collections on another template need the block there too.

Step 2: Choose the settings

  1. Split by option (1): leave it empty to split by color. To split by something else, enter the option name, such as Material. Separate several names with commas.
  2. Only split products with this tag (2): leave it empty to split every product. Enter one tag to split only the products that have it.
  3. Hide sold out variants (3): hides a card when all of its variants are sold out. With it off, the card stays and shows the Sold out badge.
  4. Maximum cards per product (4): a number from 2 to 2048, 12 by default. Raise it for products with more than 12 colors.
  5. Show variant in title (5): adds the variant to the card title, as in Noir Mini - Obsidian Black. Turn it off to show only the product title. Shoppers using a screen reader still hear the variant.
  6. Variant prefix (6): text shown before the variant, such as Size for Chrome - Size 0.10. Leave it empty to show the variant only. It shows while Show variant in title is on.
  7. Show second image on hover (7): shows the variant's next image when the pointer is over the card.
The settings of the block.
The settings of the block.

Step 3: Add it to search results

  1. Open the search page in the theme editor.
  2. Select the Search section under Template.
  3. Click Add Display variants as separate products. It is the only block here, so the editor shows it directly. It has the same settings.
The block in the Search section.
The block in the Search section.

Step 4: Turn it on in Featured collection

  1. Select a Featured collection or Featured collection media section.
  2. Under Products to show, turn on Display variants as separate products.
  3. Choose the same settings there. They stay hidden until you turn it on.
The setting in Featured collection media.
The setting in Featured collection media.

In these two sections Products to show counts cards, so a section set to 8 shows 8 cards and keeps its size.

Settings reference

Display variants as separate products

Split by option Leave empty to split by color. Enter another option name, such as Material. Separate several names with commas.
Only split products with this tag Leave empty to split all products.
Hide sold out variants A card hides only when all of its variants are sold out.
Maximum cards per product Enter a number from 2 to 2048.
Show variant in title Turns this on or off.
Variant prefix Shown before the variant, as in Size 0.10. Leave empty to show the variant only.
Show second image on hover Uses the image after the variant's own image. Off when that image belongs to another variant.

How it works

  • The cards use Theme settings > Product cards, or the section's own card settings, like every other card: image ratio, alignment, vendor, badges and quick view.
  • A card that stands for one color has no row of swatches and no quick add bar. Quick view opens on that color, and shoppers choose the rest there.
  • The price is the price of that variant, not a price range.
  • A variant with no stock is skipped when another variant of the same color is available: the card links to the available one.
  • A filter on the split option narrows the cards to the chosen values. Filtering by Black shows only the black cards.
  • Pages, sorting and the Showing 8 of 42 count work on products, so pages can have a different number of cards.
  • If a product has more than one option you listed, it splits by the first of them in the product's own option order, not the order you typed.
  • Hover effects follow your Product cards setting. Media gallery becomes a fade on these cards, so a card doesn't show other colors.

Troubleshooting

A product still shows one card

The product needs an option with at least two values. Colors come from the option names in Theme settings > Variants and swatches, Color, Colour by default. A product made as one product per color has no color option to split, and it already shows one card per color.

Some colors are missing

Check Maximum cards per product and Hide sold out variants. Also check Only split products with this tag: enter one tag only, because two tags with a comma are read as one tag and nothing matches.

Several cards show the same image

Those variants have no image of their own. Add an image to each variant in Products.

A second image shows nothing on hover

The image after the variant's own image belongs to another variant, so the card leaves it out. Put each color's images together, or name the color in the image alt text.

Related

Still stuck?

Include your store URL and theme version — we'll get back to you.

Contact support