Linux 软件免费装
Banner图

KABAA Swatches for WooCommerce

开发者 badrul007
更新时间 2026年10月20日 20:27
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce variations product attributes color swatches variation swatches

下载

0.4.0 0.5.0 0.7.0 0.3.3 0.10.0 0.6.0 0.8.0 0.9.0

详情介绍:

WooCommerce shows product variations as dropdown menus. A shopper choosing a colour reads the word "Ocean Blue" instead of seeing it, and on a phone the dropdown opens a picker that takes them off the page entirely. KABAA Swatches replaces those dropdowns with swatches a shopper can see and tap. https://www.youtube.com/watch?v=s-srg4spJ-g Works with classic themes that use WooCommerce's standard variation form. Setup guide, every screen with a screenshot: kazibadrul.com/kabaa-swatches/docs Out-of-stock handling Works on products with many variations. WooCommerce sends variation data to the browser only up to a threshold (30 variations by default). Below it, the plugin uses that data and adds no extra request. Above it, the plugin fetches availability sized to the number of swatches on screen, not the number of variations, and keeps sold-out combinations marked as the shopper chooses. Independent of catalog visibility. Out-of-stock swatches work the same whether WooCommerce's "Hide out of stock items from the catalog" option is on or off, so you can keep sold-out products visible in your shop. Shareable variation links A link to one variation, not just to the product. Choose Navy and Large and the page address becomes /product/tee/?attribute_pa_color=navy&attribute_pa_size=large. Copy it from the address bar, or let the optional button copy it, and anyone who opens that link lands on the product with Navy and Large already chosen. This is what people mean by a direct variation link, a variation URL or a variation permalink: a shareable link to one colour and size rather than to the product's default state. It is usually sold as a Pro or premium add-on. Here it is included, free, with no paid tier and no upgrade prompt. Good for answering "which one did you mean?", for an ad or newsletter that should open on the exact colour, and for support pointing a customer at one variation. What it does Built to stay out of the way

安装:

  1. Install and activate the plugin. A short welcome screen opens once, pointing to where setup happens. Nothing changes on your store yet — every attribute starts as a dropdown.
  2. Go to Swatches > Attributes and set a swatch type on an attribute. The same control is on each attribute's own form under Products > Attributes.
  3. For a colour attribute, edit its terms and give each one a colour. For an image attribute, give each term an image, or leave it and let the variation image be used. For an attribute created inside a product, use that product's Swatches tab instead.
  4. Adjust shape, size, tooltips, out-of-stock display and shareable links at Swatches > Settings.
Everything the plugin does lives under the Swatches menu: Settings, Attributes (set the type for every attribute in one place), Terms (jump to the terms that need a colour or image) and Status (read-only diagnostics for support). Terms are edited on WordPress's own screens rather than in a rebuilt copy, so you keep its search, bulk actions and quick edit. Step by step, with a screenshot of every screen: the setup guide.

屏幕截图:

  • Swatches on a shop page product card. The chosen colour carries a ring, colours that can't go with it are crossed out, and the price follows the choice.
  • Sold-out options marked on the shop card, on products of any size.
  • Swatches > Settings > Product page — shape, size, font size, tooltips, how a selected swatch is marked, and shareable links, with a live preview.
  • Swatches > Settings > Shop page — which attributes product cards show, in the order you drag them into, with a card preview.
  • The Swatches tab of a product — hide its card swatches, choose its attributes, or untick values the card shouldn't show.
  • A custom attribute made inside a product, shown as button swatches, set from that product's Swatches tab.
  • Tile swatches on a product page: each option's own photo with its price underneath. Sale prices show struck through, and sold-out options are crossed out.
  • Hovering a tile previews its photo in the main product image.
  • Swatches > Settings > Product page — the tile price setting, with a preview of tiles drawn from a product in your store.
  • The Swatches tab of a product with an attribute set to Tile. Photos come from the variations; an image here is only a fallback.

升级注意事项:

0.10.0 Adds a Radio swatch type and optional photos in tooltips. Nothing changes on your pages until you choose Radio for an attribute or switch tooltip photos on. 0.9.0 Product page addresses now follow the shopper's selection so links can be shared. Nothing is added to your pages, and Swatches > Settings > Product page turns it off. The new Copy link button is off until you switch it on. 0.8.0 German translation included (Germany, Austria, Switzerland), used when the site language is Deutsch. No settings change. 0.7.0 Help links to the setup guide on every Swatches screen, and a welcome screen for new installs. 0.6.0 New Tile swatch type: each option's photo with its price, and a gallery preview on hover. Nothing changes until you set an attribute to Tile. 0.5.0 Swatches on shop and category pages, separate swatch width and height, and a font size setting. Your current size carries over. 0.4.0 Swatches for custom product attributes, and color filled in from a color name. 0.3.3 Tooltips now show instantly on hover and keyboard focus. No settings change. 0.3.2 Maintenance release. No settings change. 0.3.1 Selected swatches look different: a ring outside the swatch instead of a thickened border, so selection stays visible on dark colours. Set the selection style to Border to keep the old look. 0.2.0 Settings have moved to the new Swatches menu. Nothing needs reconfiguring. 0.1.0 First release.

常见问题:

Is there a setup guide?

Yes: kazibadrul.com/kabaa-swatches/docs walks through every screen with a screenshot — swatch types, term colours and images, custom attributes, tile swatches, shop cards, out of stock and troubleshooting.

Do I have to change my theme?

No. The plugin hooks a WooCommerce filter that classic themes already use.

My theme has a custom variation form and I see dropdowns.

That theme renders its own markup and does not call the WooCommerce function this plugin filters. The product page keeps working normally; it just will not show swatches.

Does it work with custom attributes created inside a product?

Yes. Open the product's Swatches tab, choose a swatch type for the attribute, and give each value a color or image. The settings belong to that product only.

Does it work with more than 30 variations?

Yes, including out-of-stock marking.

Can I link to a specific variation, such as one colour or size?

Yes. As a shopper picks options, the page address gains one argument per attribute, like ?attribute_pa_color=navy&attribute_pa_size=large. Copying that address gives a link that opens the product with those options already selected. Switch on Swatches > Settings > Product page > Copy link button to give shoppers a button that copies it for them. Links that carry only some of the options work too, and a link made this way is read by WooCommerce itself, so it keeps working if you ever turn the plugin off.

Is the shareable variation link feature free?

Yes. Direct variation links are usually a paid upgrade in variation swatch plugins. In KABAA Swatches they are part of the free plugin. There is no Pro version, no trial and no locked setting.

Do I need "Hide out of stock items from the catalog" switched on?

No. That setting has no effect on swatches here.

Does it send anything to a third party?

No.

Does it work on shop and category pages?

Yes: the shop, categories, tags, search results, product shortcodes and related products. Each variable product card shows its swatches before or after the add-to-cart button. Shoppers can pick options on the card and, when the card shows every option, add the variation to the cart there, whatever the number of variations. Otherwise the product opens with the options already chosen.

Can I choose which products show swatches on the shop page?

Yes. Swatches > Settings > Shop page chooses the attributes for every card (automatic, all, or the ones you pick), or turns card swatches off. A product's own Swatches tab can choose different attributes for that product, or hide its swatches on shop pages.

My theme's product cards look different. Will it work?

The plugin finds each card's image and add-to-cart button on its own. If your theme lays out cards unusually, Swatches > Settings > Advanced lets you name them with a CSS selector.

What happens if I delete the plugin?

It removes only what it created: its settings, the colours and images you set on attribute terms, and the swatch settings saved on products (custom attributes and the shop card choice). It never deletes an attribute, a term, a product, a variation, or anything in your media library. A swatch image is a reference to a file in your media library — deleting the plugin removes the reference, never the file. Your store keeps working with WooCommerce's normal dropdowns. Deactivating is different again: that changes nothing at all, so you can switch the plugin off and back on without losing any setup.

更新日志:

0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.3.2 0.3.1 0.2.0 0.1.0