Chiseiko Essential Swatches

Switching From Another Swatch Plugin


Already set up your swatches in another plugin? You do not have to do it again. Chiseiko Essential Swatches copies them across when you install it, keeps them in step while you check the result, and lets you undo everything with one click. Nothing in the other plugin is ever changed.

Everything in this chapter is part of the free plugin.


Supported Plugins

Plugin What is copied
Variation Swatches for WooCommerce by Emran Ahmed (GetWooPlugins) Colors, images, button and radio attributes, shape, size, tooltips on/off
Variation Swatches for WooCommerce by CartFlows Colors, images from your media library, label attributes, shape, size, tooltips on/off
Variation Swatches for WooCommerce by AovUp Colors, images, label text, label and radio attributes, shape
Variation Swatches for WooCommerce by RadiusTheme Colors, images, button and radio attributes, shape, size, tooltips on/off
WCBoost - Variation Swatches Colors, images, label text, label and button attributes, shape, size, tooltips on/off
Choosly – Product Variations Swatches (VillaTheme) Colors (the first of a multi-color swatch), images, button and radio attributes
Product Variation Swatches (ThemeHigh) Colors, images, label text, label and radio attributes
YITH Color, Image & Label Variation Swatches Colors, images from your media library, label text, label attributes
WPC Variation Swatches (WPClever) Colors, images, button text, button and radio attributes, shape
Swatchly Colors, images, label attributes, shape, size, tooltips on/off
WooCommerce's own color / image attributes (an experimental WooCommerce feature) Colors and images

"Button", "label" and "radio" attributes become Chiseiko label or radio swatches for the whole attribute. The shape, size and tooltip settings are only copied when you have not chosen them in Chiseiko yet.


What Happens When You Install

The first time a store manager opens wp-admin after activating Chiseiko Essential Swatches, it looks for the swatches of the plugins above and copies them across in the background. Large catalogs are copied in batches, so the import never slows down your admin pages or your store.

When it is done, a notice shows what was copied:

The notice after the automatic import: what was copied across, a reminder that the old plugin is still active, and the Review swatches and Undo import buttons

  • Review swatches opens Products → Attributes, where each term now has its Chiseiko swatch.
  • Undo import removes everything the import added.
  • Dismiss hides the notice. The details stay in the settings (below).

While this notice is shown, the getting-started notice and the review request stay hidden.

Your existing work is safe

  • The other plugin's data is never changed — the import only reads it.
  • Swatches you already set up in Chiseiko are never overwritten. They are counted as Set by you (kept).
  • Images are matched to your media library, also when your site has moved to a new domain. An image stored on another website is never downloaded; it is kept for Chiseiko Essential Swatches Pro.
  • Two-color swatches, groups and tooltip text are kept for Pro too (see Chapter 29). The free plugin shows the first color.

The Import Settings

Everything about the import is in one section of the settings:

WooCommerce → Settings → Chiseiko Essential Swatches Settings → Import From Another Swatch Plugin

The section appears only when another plugin's swatches are found, or after an import.

The Import From Another Swatch Plugin section: import options, the plugins found with their previews, the still-active warning, Import now, the last import with Undo, and the sync history

Import options (both on by default):

Option What it does
Import automatically when another swatch plugin's data is found Off: nothing is imported until you click Import now
Keep copying changes from the other plugin while it is active Off: changes in the old plugin are no longer copied; your imported swatches stay as they are and can still be undone

Swatch plugins found — one card per plugin whose swatches are in your database, active or not:

Number Meaning
Ready to import Swatches Import now would copy
Attributes Attributes those swatches belong to, plus button / label / radio attributes that would get a default
Already imported Swatches copied before (from this plugin or one that stores the same data)
Set by you (kept) Swatches you set up in Chiseiko — never overwritten
  • Import now appears when there is something left to import.
  • A card whose plugin is still active warns that it still draws its own swatches, so shoppers may see two sets, with a link to deactivate it.
  • Tried several plugins? Each one gets its own card. A swatch already imported from one plugin is not imported again from another.

Last import shows what was copied and when, with Undo import.


Plugins That Are Not on the List

Chiseiko also looks for colors and images saved by plugins it does not know. It shows them as Unknown plugin cards but never imports them by itself. See Chapter 28.


Keeping Both Plugins Active While You Check

You can keep the old plugin active while you look over your swatches. Meanwhile:

  • Changes you make in the old plugin are copied across — a new color, a new image, or a swatch removed there.
  • Edit a swatch in Chiseiko and it becomes yours. Once you save a term in Chiseiko's swatch fields, later changes in the old plugin no longer copy across to it. Saving a term page where you only changed the old plugin's fields does not count as an edit.
  • Both plugins may draw swatches on your store until you deactivate the old one.

When your swatches look right, deactivate the old plugin. Its data stays in your database, so you can switch back at any time.

Sync history

Every import, every change copied from the old plugin, every swatch you took over, and every undo is listed under Sync history, newest first:

The sync history: a color changed in the old plugin, copied across with the color before and after, and the import itself

Click a swatch name to open it. The latest 20 changes are shown; the full history of the last 100 is available to developers (below).


Removing the Old Plugin

  • Deactivating the old plugin stops the copying at once.
  • Deleting it — even when it removes all of its own data, as some plugins do — leaves your Chiseiko swatches and settings exactly as they are.
  • After you delete it, the last import can still be undone.

Undoing the Import

Undo import (in the notice or under Last import) removes everything the import added, and only that:

  • the swatches it copied, except the ones you have edited in Chiseiko since,
  • the label / radio defaults it set, if you have not changed them,
  • the shape, size and tooltip settings it set, if you have not changed them.

Your swatches in the old plugin are untouched. You can import again at any time with Import now.


With Chiseiko Essential Swatches Pro

With Pro active, the import options move to Pro's Tools tab and Pro keeps more of what your old plugin had: two-tone colors, groups, and tooltip text and pictures. See Chapter 29 — Switching With Pro.


For Developers

The same tools are available from the command line:

Command What it does
wp chiseikoessw swatch-import --status The plugins found and the last import
wp chiseikoessw swatch-import --dry-run What an import would do, without changing anything
wp chiseikoessw swatch-import --source=<id> Import now (for example --source=cfvsw)
wp chiseikoessw swatch-import --undo Undo the import
wp chiseikoessw swatch-import --log The full sync history

Other plugins can be added with the chiseikoessw_swatch_sources filter, and the import options can be changed with chiseikoessw_swatch_import_enabled — see the plugin's developer documentation.


Troubleshooting

Nothing was imported. The import looks for the plugins listed above. If your plugin is not one of them, set up your swatches in Products → Attributes as described in Chapter 2. If Import automatically is off, click Import now.

An image was not imported. It is not in your media library (for example, it is stored on another website). Upload it to your media library and choose it on the term's edit screen.

A swatch shows twice on the product page. The old plugin is still active and draws its own swatches. Deactivate it, or turn off Keep copying changes first if you want to compare.

I changed a color in the old plugin and it did not change in Chiseiko. Copying only happens while the old plugin is active and Keep copying changes is on, and stops for a swatch you have edited in Chiseiko.