🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

WooCommerce Swatch Picker Add-on Setup Guide

Updated 9 min read WooCommerce Store & Checkout
On this page
  1. Video walkthrough
  2. Step 1: Install and Activate Your License
  3. Step 2: Choose How Each Attribute Is Shown
  4. Step 3: Give Each Value Its Color, Image and Tooltip
  5. Step 4: What Customers See on the Product Page
  6. Step 5: Unavailable and Out-of-Stock Values
  7. Step 6: Product Settings and Custom Attributes
  8. Step 7: Swatches on the Shop and Category Pages
  9. Step 8: All Settings
  10. Product pages
  11. Shop and category pages
  12. Uninstall
  13. Step 9: License
  14. Worked Examples
  15. A tee in four colors and four sizes
  16. A tote in three fabrics
  17. A one-off product with its own options
  18. Troubleshooting

Video walkthrough

WooCommerce Variation Swatches: Color & Image Swatches Instead of Dropdowns
Watch: color, image and label swatches replace the variation dropdowns, and the photo and price follow each choice. Watch on YouTube

The WooCommerce Swatch Picker Add-on replaces the dropdown menus of WooCommerce variable products with swatches customers can see and tap: round or square color swatches, image swatches for fabrics, patterns and finishes, label buttons for sizes and capacities, and classic radio buttons. WooCommerce keeps doing all the work behind the scenes — matching the variation, updating the price, stock and photo — because the original dropdowns stay in the form, hidden. The add-on only changes what the customer sees and clicks.

This guide covers installation, choosing a swatch type per attribute, giving each value its color, image and tooltip, product-level settings for custom attributes, how unavailable and out-of-stock values are shown, swatches on the shop page, every setting, the license, and troubleshooting. All examples use one store: a small clothing and homeware shop in Vermont that sells tees, tote bags, chinos, beanies and cushion covers.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher (tested on 7.4 and 8.3)
  • WooCommerce: Version 8.9 or higher (tested up to 11.2), block themes and classic themes, HPOS on or off
  • Products: variable products whose attributes are marked “Used for variations”
  • License: an active GravityExtra license key for the Pro features listed in Step 9

Step 1: Install and Activate Your License

  1. Download the add-on zip from your GravityExtra account and go to Plugins → Add New → Upload Plugin.
  2. Upload the zip, click Install Now and then Activate. WooCommerce must be active.
  3. Open WooCommerce → Swatch Picker → License, paste your key and click Activate License.

Nothing changes on your store until you choose a swatch type for an attribute: every attribute starts as Dropdown (WooCommerce default). You can therefore install the add-on on a live store and switch attributes over one at a time.

Step 2: Choose How Each Attribute Is Shown

Open WooCommerce → Swatch Picker. The Attributes tab lists every global attribute of your store (the ones under Products → Attributes) with a Show as setting and a preview of its values.

The Swatch Picker screen in the WordPress admin listing the product attributes Color, Fit, Material, Pattern and Size, each with a Show as setting (Color swatches, Radio buttons, Dropdown, Image swatches, Label buttons) and a preview of its values
WooCommerce → Swatch Picker: choose how each attribute is shown and see a preview of its values.
  • Color swatches — a filled circle or square per value, in one color or two halves. Best for colors and finishes.
  • Image swatches — a small picture per value. Best for fabrics, patterns, wood types, prints and anything a single color cannot describe.
  • Label buttons — the value name in a button. Best for sizes, capacities, lengths and short options such as S, M, L or 250 g.
  • Radio buttons — a radio button with the full name. Best for two or three longer choices such as Regular fit and Relaxed fit.
  • Dropdown (WooCommerce default) — leaves the normal select menu. Good for long lists such as 40 engraving fonts.

Choose a type for each attribute and click Save attribute types. The same setting appears as a Swatches field when you add or edit an attribute under Products → Attributes, so you can set it while creating the attribute.

In our example store, Color uses color swatches, Pattern uses image swatches, Size uses label buttons, Fit uses radio buttons, and Material stays a dropdown.

Step 3: Give Each Value Its Color, Image and Tooltip

Click Edit values next to an attribute (or Configure terms under Products → Attributes). When you add or edit a value you will find four extra fields:

  • Swatch color — pick the color with the color picker or paste a hex code such as 2F6B4F.
  • Second color — optional. The swatch is then split diagonally into two halves, ideal for two-tone and heather fabrics.
  • Swatch image — choose an image from the media library, for example a close-up photo of the fabric. Square images look best; the add-on uses the thumbnail size.
  • Tooltip — the text shown when a customer points at the swatch, such as “Forest green” or “Small (chest 36–38 in)”. Leave it empty to show the value name.

The values list gets a Swatch column, and the edit screen shows a live Swatch preview, so you can check a whole palette at a glance. A color attribute value without a color, or an image attribute value without an image, is shown as a label button instead of an empty circle — nothing breaks while you are still filling in the colors.

Step 4: What Customers See on the Product Page

On the product page each attribute shows its swatches in place of the dropdown. Clicking a swatch chooses the value, and the chosen value appears next to the attribute name, for example Color: Forest. When all attributes are chosen, WooCommerce shows the variation price, stock and photo exactly as it does with dropdowns, and the Add to cart button becomes active.

A WooCommerce product page for the Organic Crew Tee with round color swatches for Forest, Navy, Oatmeal and Rust and size buttons S, M, L and XL; Forest and M are chosen, the labels read Color: Forest and Size: M, the photo shows the green tee and a tooltip reads Navy
On the product page the dropdowns become color swatches and size buttons; the chosen value shows next to the attribute name and the photo follows the color.
  • Photo follows the color. As soon as a color is chosen, the product photo switches to that color, even before a size is picked, as long as the matching variations share one photo.
  • Click again to clear. Clicking a chosen swatch a second time clears it (you can switch this off).
  • Tooltips show the value name or its own tooltip text on hover and keyboard focus.
  • Keyboard and screen readers. Swatches are real buttons in a labelled radio group: Tab reaches them, the arrow keys move between them, Enter or Space chooses one, and screen readers announce the value and whether it is chosen, unavailable or out of stock.

Step 5: Unavailable and Out-of-Stock Values

Not every combination exists. Our Rust tee is not made in XL, so as soon as a customer picks Rust, the XL button is marked as unavailable. In Settings you choose how unavailable values look: Cross out (a diagonal line, the default), Fade out, or Hide. Unavailable values cannot be clicked.

Out-of-stock values are different: the variation exists, it just cannot be bought right now. With Cross out values whose matching variations are all out of stock switched on, such values are crossed out and faded but stay clickable, so a customer can still choose them and see WooCommerce’s “Out of stock” message — or a back-in-stock form if your store has one. If you set WooCommerce to hide out-of-stock items, those variations disappear and their values are treated as unavailable.

Step 6: Product Settings and Custom Attributes

Every variable product gets a Swatches tab in the Product data box. It lists the product’s variation attributes, including custom attributes that exist only on that product, and lets you override the store-wide settings:

  • Show as — Same as the attribute (default), or any type, including turning one attribute back into a dropdown on just this product.
  • Color, Second color, Image per value — used instead of the attribute value’s own color or image.
  • Label per value — a different text on the swatch and in the tooltip for this product only, for example “Moss green” for the value Moss.

Our linen cushion cover has a custom attribute Shade with the values Sand, Clay and Moss. On its Swatches tab it is set to color swatches with three colors, so the cushion gets color swatches without creating a store-wide attribute. Click Update to save.

Step 7: Swatches on the Shop and Category Pages

With Swatches on the shop page switched on, every variable product in your shop, category and tag pages shows one row of swatches under its title. By default the add-on uses the first color or image attribute of each product; you can also choose one attribute for the whole store, such as Pattern.

A WooCommerce shop page with four products, each with a row of swatches under its title: color circles for a cushion cover, fabric pattern images for a tote bag, colors for a tee whose photo has switched to navy, and five colors plus a +3 link for a beanie
On the shop page each variable product shows its colors or patterns; pointing at a color shows that color’s photo, and a click opens the product with it chosen.
  • Show at most — the number of swatches per product before a “+3” link (5 by default, 0 shows all).
  • Photo on hover — pointing at a color shows the photo of the first variation with that color; moving away shows the main photo again.
  • Pre-selected links — clicking a swatch opens the product with that value already chosen, so the customer only has to pick a size.

Shop page swatches work in classic themes (the shop loop) and in block themes (the Product Collection block on the shop template, category pages and any page where you add it), and they also appear under related products and upsells.

Step 8: All Settings

WooCommerce → Swatch Picker → Settings has three groups.

Product pages

  • Shape — circle, rounded square or square. Label buttons follow the shape with rounded ends.
  • Size — 20 to 72 pixels (36 by default). Shop page swatches are drawn a little smaller automatically.
  • Unavailable values — cross out, fade out or hide.
  • Out of stock, tooltips, chosen value next to the name and click again to clear — on by default.
  • Turn every remaining dropdown into label buttons — one switch for stores that never want a dropdown; it also covers custom attributes that have no product setting.

Shop and category pages

  • Swatches on the shop page, Attribute, Show at most, Photo on hover and Pre-selected links, as described in Step 7.

Uninstall

  • Delete data — when on, deleting the plugin also removes the settings, attribute types, value colors, images and tooltips, product swatch settings and the license. Off by default, so a reinstall keeps everything.

Step 9: License

Without an active license, color, image, label and radio swatches of your attributes keep working on product pages. The following Pro features pause until the license is active, and a notice on the settings screens says so: shop page swatches, the product Swatches tab (product-level types, colors, images and labels, including custom attributes), and Turn every remaining dropdown into label buttons.

Worked Examples

A tee in four colors and four sizes

Color as color swatches with a tooltip “Forest green” on Forest; Size as label buttons with chest measurements as tooltips. Rust is not made in XL, and Navy in S is sold out. The customer sees four circles and four buttons; XL is crossed out after choosing Rust; Navy is crossed out after choosing S but still opens the “Out of stock” message.

A tote in three fabrics

Pattern as image swatches using close-up photos of the stripe, check and natural canvas. Material stays a dropdown because the two materials need a longer explanation. On the shop page the tote shows its three fabric swatches.

A one-off product with its own options

A cushion cover has a custom attribute Shade. Its Swatches tab sets color swatches with three colors and the label “Moss green” for Moss. No global attribute is needed.

Troubleshooting

  • I still see a dropdown — check the attribute’s Show as setting, the product’s Swatches tab (it may be set to Dropdown), and that the attribute is used for variations. Custom attributes need a product setting or the Turn every remaining dropdown into label buttons option.
  • A color swatch shows text — the value has no color yet. Add one under Edit values or on the product’s Swatches tab.
  • No swatches on the shop page — the license must be active, the product must be variable, and it must have a color or image attribute (or the attribute chosen in Settings).
  • The photo does not change — give the variations their own images on the Variations tab. On the shop page the first variation with an image for each color is used.
  • Swatches look too big or small for my theme — change Size and Shape in Settings; themes can also style the classes gesw-swatch and gesw-on.

Good to know

  • WooCommerce’s own variation logic, prices, stock and cart are untouched: orders store the same variation and attributes as before.
  • Works with the Cart and Checkout blocks, the classic cart and checkout, and high-performance order storage on or off.
  • Nothing is sent to an outside service; swatches are drawn from your own attribute data.
  • Deactivating the add-on simply brings the dropdowns back.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr