Swatch – Variation Swatches for WooCommerce
Swatch replaces WooCommerce’s default variation <select> dropdowns with visual, accessible swatches on single product pages. Choose a swatch type per attribute (colour dots or button/label pills) and assign a colour or label per term. The swatches drive WooCommerce’s own variations form, so price, s
Swatch replaces WooCommerce’s default variation <select> dropdowns with visual, accessible swatches on single product pages. Choose a swatch type per attribute (colour dots or button/label pills) and assign a colour or label per term.
The swatches drive WooCommerce’s own variations form, so price, stock and the add-to-cart button update exactly as they do with the stock dropdowns. Selected and out-of-combination states are reflected automatically.
The full source lives on GitHub at github.com/wppoland/plogins-swatch if you want to read the code or report a problem.
Features
- Colour and button/label swatch types.
- Per-attribute type selection on the global attribute screen.
- The chosen value shows beside the attribute label, as in “Color: Navy”, and screen readers announce it.
- Per-term colour ( sanitize_hex_color ) and custom label, stored as term meta.
- Wires into WooCommerce’s native variations form, no jQuery, vanilla JS.
- Keyboard operable (radiogroup semantics, arrow keys) and screen-reader labelled.
- Focus-visible rings, sufficient contrast, reduced-motion friendly, no layout shift.
- Graceful fallback to the standard dropdown when an attribute has no swatch data.
- Swatches in shop and category listings too, off by default so your shop page does not change without you asking.
- Settings page under WooCommerce: enable/disable, default swatch type and the shop-listing switch.
Self-contained. No external services, no account, no third-party dependencies.
Works with other Plogins plugins
- Peek – Product Preview for WooCommerce – variable products opened in Peek’s quick view show the same swatches as the product page, with no setting.
Swatch Pro
Swatch Pro is a separate paid plugin that extends Swatch.
Included in Swatch: