Linux 软件免费装
Banner图

Swatch - Variation Swatches for WooCommerce

开发者 motylanogha
更新时间 2026年10月2日 19:41
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce variations product attributes color swatches variation swatches

下载

1.0.17 1.0.14 1.0.15 1.0.16 1.0.18

详情介绍:

Swatch replaces WooCommerce's default variation <select> dropdowns with visual, accessible swatches on single product pages. Choose a swatch type per attribute (colour dots or button/label pills) and assign a colour or label per term. The swatches drive WooCommerce's own variations form, so price, stock and the add-to-cart button update exactly as they do with the stock dropdowns. Selected and out-of-combination states are reflected automatically. The full source lives on GitHub at github.com/wppoland/plogins-swatch if you want to read the code or report a problem. Features Self-contained. No external services, no account, no third-party dependencies.

安装:

  1. Install from Plugins > Add New by searching for Plogins Swatch, or upload the plogins-swatch folder to /wp-content/plugins/.
  2. Activate it. WooCommerce must be active.
  3. Go to WooCommerce > Swatch to tune the defaults.
  4. On Products > Attributes, set a swatch colour or label on each attribute term.

屏幕截图:

  • The Swatch settings screen under the WooCommerce menu.

升级注意事项:

1.0.14 Security release. A default installation is not exposed: the markup only becomes unsafe if another plugin hooks one of the swatch filters and returns unescaped HTML. Update, nothing else to do.

常见问题:

Documentation and links

Does it require WooCommerce?

Yes. Swatch extends WooCommerce's variable products and does nothing without it.

What happens to attributes I have not configured?

They get the plugin's default swatch type (button swatches out of the box), the same as any attribute you have not given its own type. Only a colour attribute with no colours configured falls back to the dropdown automatically.

Does it work without jQuery?

Yes. The front-end is vanilla JavaScript that hooks WooCommerce's own variation events.

Can shoppers pick variations with a keyboard?

Yes. Swatches use radiogroup semantics, arrow-key navigation and visible focus rings.

Does it work on mobile?

Yes. Swatches stay in the native variations form with touch-friendly targets; no separate mobile app or script framework is required.

Does this plugin work on WordPress Multisite?

Yes. This plugin is compatible with WordPress Multisite. Network activate it or activate it on individual sites; each site keeps its own settings and data.

更新日志:

1.0.18 1.0.17 1.0.16 1.0.15 1.0.14 1.0.13 1.0.12 1.0.11 1.0.10 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.3 1.0.2 1.0.1 0.1.5 0.1.4 0.1.3 0.1.2 0.1.1 0.1.0