Description
C4D Variation Swatches & Gallery turns the drop-down menus of your variable products into swatches customers can see and click: colour dots, small images or text buttons. Pick a colour and the main gallery changes to the photos of that colour. For shops that sell in sizes, customers can add several sizes to the cart in one click.
It is free, has no photo limit, and works with block themes and classic themes.
Variation swatches: colour, image and label
Set a type on each attribute under Products → Attributes and the drop-down becomes buttons.
- Colour swatches: round or square dots. Give each colour term its own colour under C4D › Swatches → Colours, so names like “Sage” or “Midnight” show the right shade.
- Image swatches: small photos taken from each option’s gallery.
- Label swatches: text buttons, good for sizes.
- Out-of-stock options can be shown as unavailable or hidden.
- Tooltips on hover, a circle or rectangle shape, and the “clear” link can be hidden.
A photo gallery for each colour
Add as many photos as you like to each option in the Swatch Images box of the product editor. When a customer picks a colour, the main gallery switches to the photos of that colour. Choose a slider or grid for the thumbnails, horizontal or vertical, with zoom, a lightbox and a full-screen pan and zoom.
Swatches on shop and category pages
Show the colours under each product in the shop grid, flip the thumbnail when a customer hovers over a swatch, collapse long lists behind a “View more” link, and align the swatches left, centre or right.
Order several sizes in one click (Multi Orders)
Pick an attribute, for example Size, in the Variation Swatches tab of a product. Each value then gets a quantity box. A customer chooses a colour, ticks sizes S, M and L with quantities 2, 1 and 3, and adds them all with one button. Each size becomes its own cart line. It works together with C4D Buy More Save More: the quantities of all variations of one product add up toward the discount tiers.
A Pro version is available
A Pro version is available from coffee4dev.com, for shops that want more. This plugin stays free and keeps every feature it has: nothing is taken out of it or limited to make room for Pro. Pro adds two things:
- An order table: for a product with two attributes, such as colour and size, a grid of colours by sizes where customers type a quantity in each cell and add everything to the cart in one request.
- Stock and price labels on swatches: how many are left and how much more an option costs, shown on the swatch itself.
Style the swatches with CSS
Sizes, borders, shapes and colours are styled with CSS. Add your rules in C4D › Swatches → Custom CSS. They are printed late in the page head, after the theme styles, so they win. The documentation lists the selectors and has copy-and-paste examples.
Features
- Colour, image and label swatches for any attribute, and custom attributes of a single product
- A photo gallery for each option, with no limit on photos
- Swatches on shop, category and related-product lists, with flip thumbnail
- Multi Orders: several sizes (or any one attribute) in one click, each with its own quantity
- A colour for each attribute term in its own settings tab
- Out-of-stock options hidden or marked
- Zoom, lightbox and full-screen pan and zoom
- Works with variable products, quick view and Ajax product loading (filters, infinite scroll)
- Block themes and classic themes
- Settings page under WooCommerce, plus a Custom CSS tab
Documentation and live demo
The documentation covers every setting, with setup guides and CSS examples. The demo store has the plugin working on sample products.
Installation and setup
- Install and activate the plugin from Plugins → Add New (WooCommerce must be active).
- Go to Products → Attributes and set the type of an attribute: colour, image or label.
- Open a variable product and add photos to each option in the Swatch Images box.
- Open C4D › Swatches in the admin menu to adjust the settings. The tabs are General, Shop page, Product page, Gallery & zoom, Colours, Compatibility and Custom CSS.
Multi Orders is chosen per product, in the Variation Swatches tab of the product editor.
More from coffee4dev
C4D Product Bundles for WooCommerce: sell products together at a discount. Customers tick the items, pick sizes and colours and add the whole bundle in one click. See all plugins at coffee4dev.com.
Support
Ask in the support forum or read the documentation. If the plugin works well on your shop, a review helps other store owners find it.
Installation
- Upload
c4d-woo-variation-swatchesto the/wp-content/plugins/directory, or install it from Plugins → Add New. - Activate the plugin through the Plugins menu in WordPress.
- Go to Products → Attributes and set the attribute type: colour, image or label.
- Open a variable product and add photos to each option in the Swatch Images box.
- Open C4D › Swatches in the admin menu to adjust the settings.
FAQ
How do I show colour swatches instead of drop-downs?
Go to Products → Attributes, edit your attribute (for example Color) and set its type to Color, Image or Text. Every variable product that uses the attribute then shows swatches instead of the drop-down. To give a colour term an exact shade, open C4D › Swatches → Colours.
Can I use a different gallery for each colour?
Yes. Open a variable product, find the Swatch Images box, and add photos under each option. When a customer picks a colour, the main gallery switches to those photos. There is no limit on photos per option.
How do I show swatches on the shop page?
Swatches on shop pages are on by default. Under C4D › Swatches → Shop page you can turn them off, show images instead of colours, set the alignment, flip the thumbnail on hover and collapse long lists behind “View more”.
Can customers buy several sizes at once?
Yes, with Multi Orders. In the product editor open the Variation Swatches tab and choose the attribute (for example Size). Each value then gets a quantity box, and one click adds every chosen value to the cart, each as its own line.
Is there a Pro version?
A Pro version is available from coffee4dev.com. It adds a colour by size order table and stock and price labels on swatches. This plugin keeps everything it has, and none of its features move to Pro.
Does it work with Buy More Save More?
Yes. C4D Buy More Save More counts the quantities of all variations of one product together, so 2 small and 3 medium count as 5 toward its discount tiers.
Does it work with block themes?
Swatches work on product pages and shop pages with block themes (tested with Twenty Twenty-Five) and classic themes (tested with Storefront). If your theme uses its own gallery markup, set the gallery selector under C4D › Swatches → Product page.
How do I style the swatches?
Open C4D › Swatches → Custom CSS and add your CSS. It is printed late in the page head, after the theme styles, so it wins over them. The documentation lists the selectors with examples. Saving CSS needs the unfiltered_html capability.
Do I still need C4D Plugin Manager?
No. Since 2.0.0 the plugin has its own settings page and does not need C4D Plugin Manager or Redux Framework. Keep C4D Plugin Manager ACTIVE while you update from 1.x: your settings, term colours and styling are converted on the first page load after the update (only when Plugin Manager was active). You can deactivate it afterwards if no other plugin uses it.
Where did the colour, size and border settings go?
They were replaced by CSS. Your previous styling was converted into the Custom CSS tab (when C4D Plugin Manager was active), so your shop looks the same. It is under C4D › Swatches. The documentation lists the selectors you can use.
Plugin Manager was off when I updated
Reactivate C4D Plugin Manager, then delete the option c4d_woo_vs_db_version (for example with a database tool or wp option delete c4d_woo_vs_db_version). On the next page load the plugin fills in the missing settings from Plugin Manager. If you need help, ask in the support forum.
Screenshots







Changelog
2.2.2
- Added: the settings page shows the version under its title (“Version 2.2.2, free version”).
- Added: the C4D plugins page shows whether the Pro or the free version is running.
2.2.1
- Updated the readme: the Pro version is now available from coffee4dev.com. Nothing changes for Free users.
2.2.0
- Prepared the plugin for the upcoming Pro version (a separate download). Nothing changes for Free users: all features and settings stay as they are.
2.1.0
- Updated: the settings page moved into the new shared C4D menu, as C4D › Swatches. The page address (admin.php?page=c4d-woo-vs) and all your settings are unchanged.
- Added: C4D › Our plugins page that lists our other plugins and links to their settings. It makes no network requests.
- Updated: if the shared menu cannot load, the settings stay available in the previous top-level menu.
2.0.2
- Updated: the settings page is now its own admin menu, C4D Swatches, like our other plugins. The page address (admin.php?page=c4d-woo-vs) and all your settings are unchanged.
- Updated: the notices and the plugin links point to the new menu.
2.0.1
- Updated: new name, “C4D Variation Swatches & Gallery for WooCommerce”. The plugin folder, your settings and your data are unchanged.
- Updated: new plugin page: description, tags, FAQ, banner, icon and screenshots.
- Updated: the plugin links to the new documentation and the live demo store.
2.0.0
- Added: own settings page under WooCommerce → Variation Images. C4D Plugin Manager and Redux Framework are no longer needed.
- Added: your settings, term colours and style changes are moved automatically on the first page load after the update, when C4D Plugin Manager is active (keep it active while you update). Styling settings become Custom CSS.
- Added: Custom CSS tab. It is printed late in the page head, after the theme styles.
- Updated: the colour, size, border and typography settings were removed in favour of CSS.
- Updated: scripts and styles are versioned by the plugin version.
- Updated: uninstall cleans the plugin’s options.
- Updated: removed the bundled TGM Plugin Activation library.
- Fixed: issues found by the Plugin Check (direct-access guards, prepared database query).
1.4.0
- Tested with WordPress 7.1, WooCommerce 11.2 and PHP 8.4.
- Added: declares compatibility with WooCommerce order tables (HPOS).
- Added: Requires Plugins header, so WordPress installs WooCommerce first.
- Fixed: swatch settings saved from the product editor are now sanitized.
- Fixed: Multi Orders: size swatches switched on and off again when clicked, so nothing could be selected.
- Fixed: Multi Orders: nothing was added to the cart on current WooCommerce (missing wc_add_to_cart_params), and the button stayed on loading.
- Fixed: a variation without an image caused a 404 request for “undefined” on the product page.
- Updated: plugin links point to the new docs page, support forum and reviews.
1.3.64
- Fixed: change gallery for attribute with type is color/image only
1.3.63
- Fixed: active wrong deftault attributes
1.3.62
- Fixed: tooltip typo for related products
1.3.61
- Fixed: show out of stock label for product has one attributes
1.3.60
- Added: option to insert selector for related products.
- Added: option to load js file of plugin. Fix bug when theme/other plugin load same lib with diff version
1.3.59
- Fixed: out of stock label does not work when attributes are sorted.
- Fixed: zoom function does not work
1.3.58
- Added: show out of stock label for product has one attributes
- Fixed: zoom function does not work
1.3.57
- Fixed: duplidate swatch images in single page
- Added: option to render swatch images before or after default theme attributes
1.3.56
- Added: option to run with quickview plugin, run after ajax completes. Eg: YITH WooCommerce Quick View
1.3.55
- Added: options to show view more link for variant box has more than 5 colors/images in category page
- Added: option to show image or color on category page
1.3.54
- Fixed: render gallery 2 times
- Fixed: tooltip does not work when category using ajax to load products
1.3.53
- Fixed: use woocommerce dropdown when attribute type is select
1.3.52
- Fixed: translate string with WPML
1.3.51
- Fixed: change plugin gallery when change select attributes
- Fixed: create defined color
- Fixed: translate string with WPML
- Added: option to show tooltip on mobile
1.3.50
- Updated: support Flatsome theme
- Updated: option to load zoom library of Woocommerce
1.3.49
- Fixed: break layout on iphone/ipad
1.3.48
- Updated: language files
- Updated: set default attribute type to image/color
1.3.47
- Fixed: can not click color box on listing page with iphone/android
1.3.46
- Added: notice install C4D Plugin Manager to enable Option page
- Fixed: color filed name to create color option.
1.3.45
- Added: option to hide clear button
- Fixed: dont show matching attribute
1.3.44
- Added: option Color Field Name: plugin auto create color setting by find color attribute, but color text in your country is differrent, so insert your color attribute name.
- Added: option Out Stock Attribute: you can choose hide out stock attribute or show a label text (Out Of Stock) over attribute
1.3.43
- Added: out stock label on attribute label
1.3.42
- Fixed: next/previous/zoom button show over theme’s menu
1.3.41
- Added: option Responsive: switch back to dropdown select of theme on small screen
- Added: allow to choose attribute to convert into labels, keep other in select box type.
1.3.40
- Fixed: show avaiable label, user can select easier
1.3.39
- Update: show avaiable label, user can select easier
1.3.38
- Update: break broken layout when slick lib is loaed from other plugins
1.3.37
- Fixed: does not update price when change variation
1.3.36
- Fixed: only hide default select boxs in single page
1.3.35
- Fixed: add to cart don’t work when custom attributes value has double quotes
1.3.34
- Fixed: zoom sometimes does not work
- Fixed: using full image in photoswipe
1.3.33
- Fixed: zoom using full image
- Fixed: can not load gallery of variation
1.3.32
- Added: option to set width of nav item in grid style
- Fixed: display variation images in shop/category page when using custom attributes
- Fixed: fullscreen image zoom when using default gallery by plugin.
- Fixed: center popup variation images on mobile screen.
- Fixed: pretty name for tooltip
1.3.31
- Fixed: don’t change gallery for text label
1.3.30
- Updated: do not show variation’s popup for text type attribute
- Fixed: popup in mobile screen
1.3.29
- Added: show left/right button of gallery slider
- Added: show left/right button of nav slider
- Added: center position swatches on category page
- Added: option to choose swatch shape: rectangle or circle
- Added: option to choose gallery’s NAV in grid or slider style.
- Updated: optimize zoom & pan in fullscreen mode
1.3.28
- Updated: prevent body scroll in fullscreen mode
1.3.27
- Updated: optimize zoom and pan in fullscreen
1.3.26
- Added: open image in fullscreen with zoom and pan effect for premium version
1.3.25
- Updated: optimize performance
1.3.24
- Updated: detail in readme
1.3.23
- Updated: detail link
1.3.22
- Fixed: clone function not found
1.3.21
- Updated: detail link
- Updated: init function without domready
1.3.20
- Fixed: nav animation has error when have more images.
1.3.19
- Fixed: flip image on listing page
1.3.18
- Fixed: zoom out of box
1.3.17
- Updated: optimzie performance slider.
1.3.16
- Fixed: display variation image in cart
1.3.15
- Fixed: error fullscreen mode
1.3.14
- Changed: default type is text label
- Added: variation image popup for pro version
- Added: zoom out of box for pro version
1.3.13
- Fixed: show variation image in cart
1.3.12
- Fixed: Fullscreen mode z-index: 99999;
1.3.11
- Fixed: load language file for translate
1.3.10
- Added: display custom variation image in cart
1.3.9
- Fixed: fullscreen mode: cannot read property ‘center’ of undefined
1.3.8
- Updated: add tooltip prefix
1.3.7
- Fixed: fullscreen mode on mobile
1.3.6
- Fixed: does not show the image of main gallery.
1.3.5
- Fixed: available variations is hided
1.3.4
- Added: show available variations for easier selecting
1.3.3
- Fixed: error javsacript of multi_order
1.3.2
- Fixed: error javsacript of multi_order
1.3.1
- Fixed: error javsacript of multi_order
1.3.0
- Added: option to create default gallery by plugin and replace default gallery of theme.
- Fixed: error javsacript of multi_order
1.2.19
- Added: style for photoswipe
1.2.18
- Fixed: error javascript
1.2.17
- Fixed: break gallery when resize window.
- Added: image caption to fullscreen gallery
1.2.16
- Fixed: tooltip text: remove -,_
- Fixed: display default select box of attribute.
1.2.15
- Added: option to sort attribute by alphabet
- Fixed: active default attribute and gallery
- Added: custom tooltip style.
1.2.13
- Added: option to custom multi order filed in pro version
1.2.12
- Fixed: php error on category page
1.2.11
- Fixed: js error on single page
1.2.10
- Fixed: can not load big image
1.2.9
- Fixed: do not show color button at archived/category page
- Updated: add feature image to default gallery of variation
1.2.8
- Fixed: sort image in gallery
- Fixed: can not save type of attribute
1.2.7
- Added: Nav Display: show/hide navigation gallery
- Added: Replace Main Gallery: for some themes do not need replace gallery when change color.
- Added: Main Gallery Class: for some themes has custom layout, so plugin does not find the main gallery to replace when click change color
- Added: auto add images of defaul gallery when user set only one image for each color.
- Fixed: sometime images are not loaded.
1.2.6
- Added: add height/width option for text button
- Added: add rounded style option for text button
- Fixed: fix php error c4d_woo_vs_section_options
1.2.5
- Fixed: remove radius of text button
- Fixed: error with multi order
1.2.4
- Added: default gallery for variation
- Added: nav vertical thumb
- Added: support electro theme
- Fixed: gallery break
1.2.3
- Fixed: fix pre-defined colors
1.2.2
- Added: support WordPress 5.x.x
1.2.0
- Added: support product has over 30 variations
1.1.9
- Added: support custom attribute
1.1.8
- Fixed: fix value with case-sensitive
1.1.7
- Fixed: fix php error when create default color
1.1.6
- Fixed: fix color hover change main image at category page
1.1.5
- Fixed: fix slider height
1.1.1
- Fixed: check woocommerce install
1.0.9
- Fixed: flip thumbnail on listing page
1.0.8
- Fixed: swatches on listing page
1.0.7
- Fixed: fix ob_get_contents
1.0.6
- Fixed: display swatches on listing page width default attribute
1.0.5
- Added: default style for attribute with text type
1.0.4
- Added: set default style is text
1.0.3
- Added: option to select nav direction vertical/horizontal
- Added: option to set nav item width
- Added: option to set nav item margin
1.0.2
- Fixed: dont show attributes value in product edit
1.0.1
- Fixed: error when Woocommerce is not installed.
1.0.0
- Initial release
