Divi Product Switch

Divi Product Switch for WooCommerce

Make choosing a variation feel effortless. Divi Product Switch replaces WooCommerce’s plain “Choose an option” dropdowns with clear, attractive swatches: colours, images, buttons and labels. Every part of the experience fits the way Divi stores are designed. It works the moment you activate it on Divi 4 and Divi 5, including Theme Builder product templates, and a native Divi 5 module gives you full visual control wherever you want it.

Swatch types for every attribute

  • Colour swatches: solid colours or dual-colour (split) swatches for two-tone products.
  • Image swatches: a custom image per value, or the matching variation’s own image automatically.
  • Button and label swatches: clean text buttons with optional short labels (show “XL” instead of “Extra Large”).
  • List style: rows with thumbnail, price and stock, ideal for sizes or bundles.
  • Styled dropdown: a polished version of the classic select when you prefer it.

Unique shapes for each switch type

  • Colour: circle, rounded, square, diamond, pill.
  • Image: circle, rounded, square, portrait, landscape.
  • Button: rounded, square, pill, underline, chip.
  • List: card, plain, compact.
  • Dropdown: rounded, square, pill.
  • Selected styles: ring, check mark, fill or scale.

Full size and spacing control

  • Size presets from extra small to extra large, or custom width and height.
  • Inner padding, swatch inset, border width, corner radius, gap between swatches and font size.
  • Separate values for desktop and mobile.
  • Set it globally, per attribute, per product or per Divi module. The more specific setting always wins, and a one-click “Reset to default” sits beside every group.
  • Touch targets never drop below a comfortable 44 px on phones.

See the product before you click

  • Hover card: hover over or tab to a colour or image swatch and a small card appears beside it, showing the product in that colour, with name, price and optional stock.
  • Gallery preview: optionally swap the main product image on hover, or use both together.
  • Smart positioning keeps the card on screen, works right-to-left, and skips touch screens unless you enable long-press.

Variation image and gallery switching

  • Main image switching as shoppers choose.
  • Full support for WooCommerce’s built-in per-variation gallery (WooCommerce 11.1+), including inside Divi layouts where the images and add-to-cart sit in separate modules.
  • Optional scroll to the gallery on mobile after a selection.

Clear availability, even on huge products

  • Show unavailable combinations crossed out, faded or hidden.
  • Out-of-stock options can be crossed out, faded, hidden, disabled with a tooltip, or left selectable.
  • Stays accurate on products with hundreds of variations, beyond WooCommerce’s usual 30-variation limit.

Helpful shopping details

  • Selected value shown next to the attribute name, for example “Colour: Red”.
  • Text or image tooltips.
  • “+$5” price difference badges on values that cost more.
  • “Only 3 left” stock messages.
  • Start with the default variation, the first available one, or nothing selected.
  • Shareable links that open the exact variation a shopper picked.

Swatches on shop and category pages

  • Show swatches on product cards in the shop, category pages, WooCommerce shortcodes, Divi Shop (Divi 4) and Products (Divi 5) modules.
  • Clicking a swatch switches the card image instantly.
  • Add to cart straight from the card, or jump to the product with the chosen option preselected.
  • Limit visible swatches with a “+N more” link; choose position and alignment.

Linked products

  • Group separate products, such as a red shirt and a blue shirt, into one choice row.
  • Shoppers switch between them as if they were variations.
  • Works on product pages, shop cards and in the Divi module, with its own label, type and shape.

Built for Divi

  • Zero setup: swatches appear automatically in Divi’s Add To Cart modules, product layouts and Theme Builder templates.
  • Divi 5 module: choose the product (current, latest or a specific one), which attributes to show, whether to include linked products, and design every swatch type separately. Shapes, sizes, colours, borders, spacing, typography and the hover card are all editable, plus Divi’s standard design options.
  • Live Visual Builder preview: the builder shows the real swatches, exactly as shoppers will see them.
  • Divi 4 and custom placements: a shortcode works in any Code or Text module.

Easy to manage

  • Simple settings under WooCommerce → Settings → Product Switcher.
  • Set each attribute’s swatch type, shape, size and spacing on the attribute screen.
  • Add colours, dual colours, images, short labels and tooltips to attribute values, with a preview column in the list.
  • Override swatch settings per product.
  • Already using Variation Swatches? It reads your existing swatch colours and images right away, and a one-click background import copies them across safely.
  • Supports WooCommerce’s own colour/image attribute data too.
  • CSV import/export support for swatch data, and REST API support for attribute terms.

Fast, accessible and safe

  • Loads its files only on pages that show swatches.
  • No jQuery UI and no inline styles; swatch colours are delivered as clean CSS.
  • Full keyboard support (arrow keys, Home/End, Space/Enter) and screen reader friendly.
  • Right-to-left layouts supported automatically.
  • Translation-ready, with WPML and Polylang support.
  • Compatible with WooCommerce High-Performance Order Storage and block checkout.
  • Your data stays put: deactivating changes nothing in WooCommerce, and swatch data is only removed on uninstall if you choose to.

Requirements

  • WordPress 6.8+
  • WooCommerce 9.0+ (variation galleries need 11.1+)
  • PHP 7.4+
  • Divi 4.27+ or Divi 5 (theme or Divi Builder plugin)

/* 3 · plugins */ at(function(){step(2);},t);t+=520; var sws=$$(".qnh_hw_sw2",panes[2]).slice(0,2); sws.forEach(function(s,k){at(function(){s.classList.add("qnh_on");},t+k*180);}); t+=sws.length*180+420; /* 4 · media */ at(function(){step(3);},t);t+=560; at(function(){$$(".qnh_hw_md",panes[3])[0].classList.add("qnh_on");},t);t+=760; /* 5 · branding */ at(function(){step(4);$("#qnh_name").classList.add("qnh_focus");},t);t+=380; for(var n=1;n<=NAME.length;n++){ (function(c,d){at(function(){ $("#qnh_name").firstElementChild.textContent=NAME.slice(0,c); $("#qnh_slug").textContent=SLUG.slice(0,Math.max(0,c-1)); $("#qnh_prevname").textContent=NAME.slice(0,c); $("#qnh_prevh").textContent="Welcome to "+NAME.slice(0,c); },d);})(n,t); t+=48; } t+=180; at(function(){$("#qnh_name").classList.remove("qnh_focus");$$(".qnh_hw_sws i",panes[4])[0].classList.add("qnh_sel");},t);t+=760; /* 6 · review */ at(function(){step(5);},t);t+=180; $$("[data-qnh_cnt]",panes[5]).forEach(function(b){ var to=+b.dataset.qnh_cnt; for(var k=1;k<=to;k++)(function(v,d){at(function(){b.textContent=v;},d);})(k,t+k*(to>5?42:260)); }); t+=900; /* 7 · generate */ at(function(){step(6);},t);t+=320; var logs=$$("#qnh_log span"),PCT=[14,31,48,66,84,100]; logs.forEach(function(l,k){ at(function(){ l.classList.add("qnh_on"); $("#qnh_progress").style.width=PCT[k]+"%"; $("#qnh_pct").textContent="Working · "+PCT[k]+"%"; },t+k*240); }); t+=logs.length*240+420; /* ready */ at(function(){ready.classList.add("qnh_on");},t);t+=3400; at(function(){running=false;run();},t); } /* ---- sizing: never paint before the real width is known ---- */ var lastW=0; function fit(){ var w=stageEl.clientWidth; if(!w||w===lastW)return; lastW=w; scale.style.setProperty("--qnh_s",(w/620).toFixed(4)); wrap.style.visibility="visible"; } if("ResizeObserver" in window)new ResizeObserver(fit).observe(stageEl); else addEventListener("resize",fit); fit(); requestAnimationFrame(function(){fit();requestAnimationFrame(fit);}); if(document.readyState!=="complete")addEventListener("load",fit,{once:true}); if(reduce){finish();return;} if("IntersectionObserver" in window){ new IntersectionObserver(function(e){ vis=e[0].isIntersecting; if(vis)run();else{clearAll();running=false;} },{threshold:.25}).observe(stageEl); }else run(); })();
0$0.00