Black Friday·30% off everything·Get all nine — $90.30
← All sections

Product cards

Colorway Swatches

Show what else it comes in.

A small row under any product card using each variant’s own photo. Click one and the card image swaps to that colorway.

Works with any photography
Live — this is the real section

Any photography works. No cutouts needed. This is the section for the images that don’t suit a product grid.

  • Click a color, the card followsThe image swaps and the card link points at that variant, so a shopper lands on the one they picked.
  • No swatch setupMost swatch tools want a hex value per color, set by hand across every product. This reads the variant photo you already have.
  • Stays quiet when it shouldRenders nothing for single-color products. A lone swatch reads as a bug.
  • Finds the option itselfColor, Colour, Shade, Colorway. It looks for the right option by name rather than making you configure it.

Every setting

Colorway Swatches is a snippet rather than a section, so its controls are arguments you pass when you render it. Every one is optional — the defaults are what most stores want.

Options

  • limitdefault 4
  • sizedefault 24px
  • option_nameauto-detect
  • swapdefault on
  • show_moredefault on

What it does on its own

  • Finds the colorway optionautomatic
  • Uses each variant’s own photono setup
  • Swaps the card image on clickautomatic
  • Points the link at that variantautomatic
  • Hides itself under two colorwaysautomatic
  • Still readable with JS offautomatic

No metaobjects, no hex map, no admin setup. It reads the variant images your products already have, which is why it works on Horizon and Dawn without either one being configured first.

Installing it

  1. Shopify admin → Online Store → Themes → … → Edit code
  2. Under Snippets, click Add a new snippet and name it product-swatches
  3. Delete the starter contents, paste the file in, and Save
  4. Add one line to your product card where the price renders — the guide shows exactly where

About five minutes. Duplicate your theme first and install into the copy — that’s your undo. A written guide comes with the download.

Other sections

Free Download free