For the complete documentation index, see llms.txt. This page is also available as Markdown.

Importing variations

How variations are imported is set in External Importer > Settings > Import > Variations. The setting is used when Product type is Simple/Variable Product.

Option
Result

Don't import

One simple product. Variations are ignored.

As one variable product (default)

One variable WooCommerce product. Each variation has its own price, SKU, image and stock.

As separate simple products

One simple product for each variation.

Separate simple products

Use this option when every variation must be a product of its own, for example when you list products on marketplaces that don't accept variable products.

For a source product with sizes 1 L and 5 L, sold per unit or per box, you get four products:

  • Disinfectant - 1 L, Unit

  • Disinfectant - 1 L, Box

  • Disinfectant - 5 L, Unit

  • Disinfectant - 5 L, Box

Each product gets:

  • the variation's price, regular price, SKU, GTIN, stock status and stock quantity;

  • the variation's image, or the main product image if the variation has none;

  • the description, categories, brand and gallery of the source product;

  • the variation values as product attributes (for example, Size: 1 L, Pack: Unit), even if Import attributes is off.

The variation values are added to the end of the title. To place them elsewhere, add %PRODUCT.VARIATION% to the Title template, for example %PRODUCT.title% (%PRODUCT.VARIATION%).

Images shared by several variations are downloaded once and used by all of them.

Synchronization

Price and stock synchronization works as for any other product. One request to the source page updates all products made from it.

  • If a variation is no longer on the source page, its product is set to Out of stock.

  • If none of the variations can be found on the page, the synchronization is counted as failed and the products keep their data. This usually means the store changed its variation names, and the parser needs an update. Failed products are listed on the Sync status page.

Things to know

  • The setting applies to new imports. Products imported earlier keep their type and keep synchronizing.

  • A source product that is already imported is skipped as a duplicate, whatever option it was imported with. To change how existing products are imported, delete them and import them again.

  • Variations added to the source store later are not imported automatically.

Different options for different stores

The setting applies to all stores. To import variations from one store as separate simple products and keep one variable product for the others, add this code to the functions.php file of your theme:

Replace klintensiv.ro with the store domain, without www.. To do the opposite – keep one variable product for one store while the setting is As separate simple products – return variable instead of separate.

More examples are in Useful hooks.

Last updated