How to Set Up Variation Swatches in WooCommerce
Shock’s variation swatches for WooCommerce replace the default variation dropdowns with clickable color, image, or label buttons. Instead of picking “Red” from a list, shoppers tap a red circle — a clearer, faster and more attractive way to choose a variation, which helps conversions.
Setting them up has two parts: creating the product attribute (and its swatch terms), then linking that attribute to a variable product.
Part 1 — Create and configure an attribute
Section titled “Part 1 — Create and configure an attribute”Add the attribute
Section titled “Add the attribute”-
From the WordPress dashboard, go to Products » Attributes.
-
On the left, fill in the attribute name (for example, Color or Size) and choose its Type:
- Label — a simple text label for each variation.
- Color — a color swatch for each variation.
- Image — an image swatch for each variation.
-
Click Add Attribute. It appears in the table on the right, where you can Edit or Delete it later.
Configure the terms
Section titled “Configure the terms”Terms are the individual options within an attribute (the specific colors, sizes or images).
-
In the attributes table, hover over your attribute and click Configure terms.
-
Add: fill in the fields, set the term’s color or image, and click Add New.
-
Edit: hover over a term, click Edit, adjust its swatch, and click Update.
Part 2 — Apply the attribute to a product
Section titled “Part 2 — Apply the attribute to a product”-
From the WordPress dashboard, go to Products and edit (or create) a variable product.
-
In Product data, open the Attributes tab and add the attributes you want to offer as variations. Tick Used for variations.
-
Open the Variations tab and generate or add the variations, setting price, stock and image for each.
-
Open the Swatches tab and choose how the swatches display. For each attribute you can set the Attribute Type:
- Default — inherit the global settings from Products » Attributes.
- Custom (your attribute) — override the swatch style just for this product.
-
Update the product.
Next Set up your store pages: Cart, Checkout & Account.