Variation swatches

Updated

Swatches replace the dropdowns on a variable product’s page. Shoppers click a color, a photo or a button, and the price, stock and product photo change as they would with the dropdown.

Turn on swatches for an attribute

Swatches work with the attributes under Products → Attributes (the ones shared by many products), not ones typed into a single product.

  1. Go to Products → Attributes and select Edit under the attribute, such as Color
  2. Pick a Swatch style:
    • Color swatches: round color dots
    • Image swatches: small square photos, good for fabrics and finishes
    • Buttons: the name of each choice in a box, good for sizes
    • Dropdown (WooCommerce default): no swatches
  3. Select Update

Set each color or photo

For color and image swatches, give each choice its color or photo:

  1. On Products → Attributes, select Configure terms beside the attribute
  2. Edit a term, such as Red
  3. Pick a Swatch color, or choose a Swatch image
  4. Select Update

The term list shows each swatch in its Swatch column. A choice without a color or photo shows as a button with its name until you set one.

What shoppers see

  • The choice they picked is outlined in the site’s main color. Next to color and image swatches, its name is shown (not when every choice shows as a button with its name, which already says it).
  • A choice that’s out of stock with their other choices is crossed out. Shoppers can still pick it, as with WooCommerce’s dropdown, to see that it’s out of stock and, if you use WooCommerce’s back-in-stock emails, sign up to hear when it’s back.
  • A choice that doesn’t exist with their other choices (say, XL only comes in blue) is faded and can’t be picked.
  • Clicking the picked swatch again clears it.
  • Swatches work with the keyboard (Tab to a group, arrow keys to choose) and are read out by screen readers like any other choice.

Tips

  • Swatches pick up the site’s form styles: border, corner rounding and main color come from your Dirigible style settings.
  • The shop and category pages don’t show swatches yet; only product pages do.
  • Stock shown on a product page can be a little behind on a busy shop, because pages are cached. The cart always checks stock before checkout.
  • Activating Variation Swatches for WooCommerce shows a message first: it and Dirigible Store would both change the option dropdowns. See Plugins Dirigible replaces.
  • While Dirigible Variation Swatches is active, product pages show its swatches and Dirigible Store’s wait, so the two never show together. Turning it off is the switch.

Built by Dirigible Studio. Get in touch