Title: SwatchCraft – Variation Swatches for WooCommerce
Author: Rajan Vijayan
Published: <strong>13. Oktober 2014</strong>
Last modified: 23. Oktober 2026

---

Search plugins

![](https://ps.w.org/wp-smart-variations/assets/banner-772x250.png?rev=3761221)

![](https://ps.w.org/wp-smart-variations/assets/icon-256x256.png?rev=3761221)

# SwatchCraft – Variation Swatches for WooCommerce

 By [Rajan Vijayan](https://profiles.wordpress.org/rajanit2000/)

[Download](https://downloads.wordpress.org/plugin/wp-smart-variations.3.0.0.zip)

 * [Details](https://de-ch.wordpress.org/plugins/wp-smart-variations/#description)
 * [Reviews](https://de-ch.wordpress.org/plugins/wp-smart-variations/#reviews)
 *  [Installation](https://de-ch.wordpress.org/plugins/wp-smart-variations/#installation)
 * [Development](https://de-ch.wordpress.org/plugins/wp-smart-variations/#developers)

 [Support](https://wordpress.org/support/plugin/wp-smart-variations/)

## Description

SwatchCraft replaces WooCommerce’s variation dropdowns with swatches: colour dots,
pattern images, size buttons or radio buttons. Shoppers see every option at once,
see which ones are out of stock, and pick a variation in one click.

SwatchCraft is the new name and a complete rewrite of **WP Smart Variations**. The
plugin slug is still `wp-smart-variations`. Everything is free.

#### Swatches

 * **Colour** swatches with one colour, or two colours split diagonally («Navy and
   white»).
 * **Image** swatches for patterns, materials and prints, chosen from the media 
   library.
 * **Button** swatches with the value name or a short label («XL» for «Extra large»),
   and **radio** buttons.
 * **Automatic buttons:** attributes without a swatch type show as buttons, so every
   product gets swatches without any setup. Switch it off to keep dropdowns for 
   those attributes.
 * Set the type on each attribute (Products  Attributes), colours and images on 
   its terms, and override both per product in the new **Swatches** tab of the product
   data box. Custom attributes of a single product can have swatches too.
 * Already use WooCommerce’s colour and image fields on attribute terms? SwatchCraft
   uses them.

#### Made for shoppers

 * **Unavailable** combinations are crossed out or hidden; clicking a crossed-out
   value starts the choice again from it.
 * **Out-of-stock** values are crossed out, left clickable (for backorders) or hidden.
 * The chosen value next to the attribute name («Colour: Navy»), tooltips with the
   value name, and optionally its **price** and **stock**.
 * Price, stock, image and add to cart update exactly as with dropdowns: WooCommerce
   still runs the form, so themes and plugins that work with variations keep working.
 * **Accessible:** each attribute is a radio group with arrow-key navigation, and
   screen readers hear the names of colour and image swatches.
 * **Large products** (hundreds of variations) work too: SwatchCraft follows WooCommerce
   when it loads variations one at a time.
 * **Works without JavaScript:** the dropdowns stay until the swatches can work.

#### Extras

 * **Swatches on product cards** in the shop, categories and related products. Choosing
   a swatch shows that variation’s image on the card and links to the product with
   the value already chosen. Works with classic shop templates and the Product Collection
   block.
 * **Variation image galleries:** add more images to each variation. Choosing it
   shows them in the product gallery.
 * **Variations table:** every variation with its image, price, stock and a quantity
   field, added to the cart in one go. Show it below the add-to-cart form, instead
   of it, or only on chosen products, or place it anywhere with the **Variations
   Table** block or the `[swatchcraft_table id="123"]` shortcode.

#### For any theme

 * Works with block themes and classic themes, on phones and desktops.
 * Round, rounded or square swatches in three sizes, styled with CSS custom properties
   so your theme can restyle them.
 * A settings page with a live preview: WooCommerce  SwatchCraft.
 * Compatible with WooCommerce order storage (HPOS) and the cart and checkout blocks.
 * No external services, no tracking.

## Screenshots

[⌊Colour and size swatches on a product page, with the chosen values next to the
attribute names.⌉⌊Colour and size swatches on a product page, with the chosen values
next to the attribute names.⌉[

Colour and size swatches on a product page, with the chosen values next to the attribute
names.

[⌊Out-of-stock and unavailable values are crossed out; tooltips show the price and
stock.⌉⌊Out-of-stock and unavailable values are crossed out; tooltips show the price
and stock.⌉[

Out-of-stock and unavailable values are crossed out; tooltips show the price and
stock.

[⌊Image swatches for patterns, together with colour and size swatches.⌉⌊Image swatches
for patterns, together with colour and size swatches.⌉[

Image swatches for patterns, together with colour and size swatches.

[⌊Swatches on product cards in the shop: choosing one shows that variation's image.⌉⌊
Swatches on product cards in the shop: choosing one shows that variation's image
.⌉[

Swatches on product cards in the shop: choosing one shows that variation’s image.

[⌊The variations table: choose quantities and add several variations to the cart
at once.⌉⌊The variations table: choose quantities and add several variations to 
the cart at once.⌉[

The variations table: choose quantities and add several variations to the cart at
once.

[⌊The settings page with a live preview.⌉⌊The settings page with a live preview.⌉[

The settings page with a live preview.

[⌊Colours and images on attribute terms, with an optional second colour and short
label.⌉⌊Colours and images on attribute terms, with an optional second colour and
short label.⌉[

Colours and images on attribute terms, with an optional second colour and short 
label.

[⌊The Swatches tab of a product: swatch type, colours and images for each attribute,
product cards and the variations table.⌉⌊The Swatches tab of a product: swatch type,
colours and images for each attribute, product cards and the variations table.⌉[

The Swatches tab of a product: swatch type, colours and images for each attribute,
product cards and the variations table.

## Blocks

This plugin provides 1 block.

 *   Variations Table Every variation of a product with price, stock and quantity,
   and one button to add them all to the cart.

## Installation

 1. Install SwatchCraft from **Plugins  Add New** and activate it. WooCommerce must
    be active.
 2. Your variable products now show buttons instead of dropdowns.
 3. For colour or image swatches, go to **Products  Attributes**, edit an attribute(
    for example «Colour») and choose **Colour** or **Image** as its swatch type. Then
    open **Configure terms** and pick a colour or image for each term.
 4. Adjust the look and the extras under **WooCommerce  SwatchCraft**.

## FAQ

### I used WP Smart Variations 1.0. What changes?

Version 1.0 turned WP eCommerce variation dropdowns into radio buttons. If WP eCommerce
is still active on your site, that behaviour stays. SwatchCraft 3.0 adds swatches
for WooCommerce. Version 1.0 stored no data, so there is nothing to move.

### Do I have to set up every product?

No. Attributes without a swatch type show as buttons automatically. Set a colour
or image type once on a global attribute and all products using it get those swatches.
The product’s Swatches tab is only needed for exceptions and for custom attributes
of that product.

### How do I make a two-colour swatch?

Edit the term (for example «Navy and white») and fill in both **Colour** and **Second
colour**. The swatch is split diagonally between them.

### Can I keep dropdowns for some attributes?

Yes. Choose **Dropdown** as the swatch type of the attribute, or of the attribute
on one product. To keep dropdowns everywhere except where you chose a type, switch
off «Buttons for attributes without a swatch type» in the settings.

### Why are out-of-stock values not crossed out on some products?

Products with more variations than the «Large products» setting (30 by default) 
load variations one at a time from the server, as WooCommerce does. Their stock 
is known only once a variation is chosen. Raise the setting (up to 500) if your 
server is fast enough to send all variations with the page.

### Which attribute is shown on product cards?

The one you choose under WooCommerce  SwatchCraft  Product cards. Automatic picks
an attribute with «Show swatches on product cards» ticked, otherwise the first colour
or image attribute. A product can hide its card swatches in its Swatches tab.

### Can I change how the swatches look?

Choose the shape and size in the settings, or override the `--swatchcraft-size`,`--
swatchcraft-radius`, `--swatchcraft-gap`, `--swatchcraft-border`, `--swatchcraft-
active` and `--swatchcraft-surface` CSS custom properties in your theme.

### Is there an API for developers?

Yes. The `swatchcraft_attribute_type` and `swatchcraft_attribute_options` filters
change the swatch type and the values of an attribute, `swatchcraft_loaded` fires
when SwatchCraft has loaded with WooCommerce, and the variations table adds to the
cart through the `swatchcraft/v1/cart` REST route.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“SwatchCraft – Variation Swatches for WooCommerce” is open source software. The 
following people have contributed to this plugin.

Contributors

 *   [ Rajan Vijayan ](https://profiles.wordpress.org/rajanit2000/)

[Translate “SwatchCraft – Variation Swatches for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/wp-smart-variations)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wp-smart-variations/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wp-smart-variations/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wp-smart-variations/)
by [RSS](https://plugins.trac.wordpress.org/log/wp-smart-variations/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.0.0

 * New: renamed to SwatchCraft and rewritten from scratch for WooCommerce.
 * New: colour (one or two colours), image, button and radio swatches for variation
   attributes, set on attributes and terms, with per-product overrides.
 * New: automatic buttons for attributes without a swatch type, including custom
   product attributes.
 * New: unavailable and out-of-stock values crossed out or hidden, the chosen value
   next to the attribute name, and tooltips with price and stock.
 * New: swatches on product cards, with image swap and links to the chosen variation.
 * New: variation image galleries.
 * New: variations table with bulk add to cart, as a block, a shortcode or on product
   pages.
 * New: settings page with a live preview under WooCommerce  SwatchCraft.
 * New: keyboard and screen reader support, and dropdowns kept when JavaScript is
   off.
 * Improvement: the WP eCommerce radio buttons of version 1.0 load from a script
   file instead of inline code, only where WP eCommerce runs.
 * Requires WordPress 6.5, PHP 7.4 and WooCommerce 9.0 or later.

#### 1.0

 * Radio buttons for WP eCommerce variations.

## Meta

 *  Version **3.0.0**
 *  Last updated **3 Wochen ago**
 *  Active installations **10+**
 *  WordPress version ** 6.5 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/wp-smart-variations/)
 * Tags
 * [color swatches](https://de-ch.wordpress.org/plugins/tags/color-swatches/)[image swatches](https://de-ch.wordpress.org/plugins/tags/image-swatches/)
   [product variations](https://de-ch.wordpress.org/plugins/tags/product-variations/)
   [variation swatches](https://de-ch.wordpress.org/plugins/tags/variation-swatches/)
   [woocommerce variations](https://de-ch.wordpress.org/plugins/tags/woocommerce-variations/)
 *  [Advanced View](https://de-ch.wordpress.org/plugins/wp-smart-variations/advanced/)

## Ratings

 5 von 5 Sternen.

 *  [  1 5-Sterne-Rezension     ](https://wordpress.org/support/plugin/wp-smart-variations/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/wp-smart-variations/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/wp-smart-variations/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/wp-smart-variations/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/wp-smart-variations/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-smart-variations/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wp-smart-variations/reviews/)

## Contributors

 *   [ Rajan Vijayan ](https://profiles.wordpress.org/rajanit2000/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wp-smart-variations/)