WordPress.org

Plugin Directory

Variantly – Lightweight Swatches & Variation Gallery for WooCommerce

Variantly – Lightweight Swatches & Variation Gallery for WooCommerce

Description

Variantly replaces the variation dropdown on variable products with round color swatches, and lets every variation have its own image gallery. Pick a color, and the product images change to that color’s photos.

Unlimited gallery images per variation, free.

  • Pick each variation’s swatch color with a color picker, right in the variation panel.
  • Add as many gallery images as you like to each variation. The gallery switches when a swatch is selected and resets when cleared.
  • Out-of-stock colors are marked automatically: a cross by default, or your own text such as “Coming soon”. They cannot be selected.
  • Optional badge on any swatch, such as “New” or “-20%”.
  • Settings page with a live preview: swatch size, spacing, border, colors, hover animation and badge colors.
  • Looks right on light and dark store designs.
  • Works with global and custom (per-product) attributes, and with classic and block themes.
  • Keyboard accessible (radio group semantics, Space/Enter to select).
  • Light: plain CSS and a little JavaScript, no external libraries or requests.

An attribute becomes swatches once every one of its values has a color; otherwise the normal dropdown is kept.

Screenshots

Installation

  1. Make sure WooCommerce is active.
  2. Upload the variantly folder to /wp-content/plugins/ or install it from the Plugins screen, then activate it.
  3. Edit a variable product, open the Variations tab, expand a variation and set its Swatch color and optional Variation gallery images.
  4. Save the variations.

FAQ

Why do I still see a dropdown?

Every value of the attribute needs a swatch color. Set one on each variation that uses that value.

Can I change the swatch size or accent color?

Yes. Go to WooCommerce > Variantly. You can set the size, spacing, border, selected and hover colors, animation and badge colors there.

How do out-of-stock swatches work?

A swatch counts as out of stock when every variation that uses that color is out of stock. By default it gets a cross. In WooCommerce > Variantly > Out of stock you can switch to Text and type your own label, such as “Coming soon”. Out-of-stock swatches cannot be selected.

Does it replace the product gallery for simple products?

No. Only variable products use the Variantly gallery.

Reviews

There are no reviews for this plugin.

Contributors & Developers

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

Contributors

Changelog

2.4.7

  • Readme: removed a repeated sentence from the description.

2.4.6

  • Removed the extra outline that appeared around a gallery thumbnail after clicking it. Keyboard focus is still shown.

2.4.5

  • Badge colors are set with two color pickers in Settings.

2.4.3

  • Fixed drag-and-drop reordering of variation gallery images, which sometimes did not register.

2.4.2

  • Fixed a cramped layout of the settings rows on narrower screens.

2.4.1

  • Security hardening: stricter checks on saved settings and gallery image IDs.

2.4.0

  • Swatches now have a thin outline that shows on dark and light pages.
  • Badges have a hairline edge so they stay visible on dark pages.
  • Out-of-stock text is shown in capitals.

2.3.3

  • Out-of-stock text on swatches is now shown in capitals.

2.3.2

  • The custom out-of-stock text now sits inside the dimmed swatch, centered, like a stamp.

2.3.1

  • The custom out-of-stock text now sits under the swatch as plain uppercase text instead of a pill.

2.3.0

  • Out-of-stock swatches show a cross by default. A new setting lets you show your own text instead (default: Coming soon). Out-of-stock swatches cannot be selected.

2.2.2

  • The default selected-swatch color is now blue (#789afb). Sites that already saved their own color keep it.

2.2.1

  • New look for the settings page: cards, a live preview beside the settings, a segmented animation picker and a clear “Settings saved” message.
  • Swatch color, badge and gallery images in the variation panel are grouped into tidy boxes, with no inline styles.

2.1.0

  • Settings page: swatch size, spacing, border width and colors, hover color, animation effect and speed.
  • Optional per-variation badge on the swatch and the gallery image.

2.0.0

  • Per-variation swatch colors and gallery images.
  • Block theme support.