Linux 软件免费装
Banner图

Variation Converter – Simple to Variable Products for WooCommerce

开发者 craigpestell
更新时间 2026年11月26日 04:28
PHP版本: 7.4 及以上
WordPress版本: 7.2
版权: GPLv2 or later
版权网址: 版权信息

标签

variable products product variations merge products simple to variable combine products

下载

0.3.0 0.8.0 1.1.0 1.3.1 1.4.1 1.0.0 1.10.1 1.0.1 1.3.2 1.4.0 0.12.1 0.13.0 0.14.0 0.4.0 0.6.0 0.15.0 0.17.0 0.17.1 0.9.0 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 0.12.0 1.6.0 1.3.0 1.7.0 0.12.3 1.2.0 1.8.0 0.5.1 1.10.0 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.9.0 1.11.2

详情介绍:

Many WooCommerce stores end up with one simple product per color or size: "Classic Tee Black", "Classic Tee Blue", "Classic Tee Red". Shoppers scroll past three listings where there should be one, and you keep three products in sync by hand. Variation Converter converts simple to variable products in WooCommerce. It merges them into one product, "Classic Tee", with a Black, Blue and Red variation, and each variation keeps its original's SKU, price, stock and image. The originals are hidden, not deleted, and Undo puts everything back. It finds the products that belong together for you, so you can combine products into variations one at a time or bulk convert a whole catalog, such as one imported from a supplier feed or CSV with a separate product for every size and color. It works the other way too: convert a variable product to simple products, with the same preview and the same Undo. How it works
  1. Go to Products > Variation Converter and search for a product name or SKU, such as "Classic Tee".
  2. Tick the groups the plugin suggests, and any matching products listed under Products not in a group.
  3. Click Combine into one product, check the product name, attribute and labels, and click Create variable product.
Nothing changes in your store until that last click. The History tab can undo every conversion. Features Finding the products Combining Safe to try Splitting Lightweight Combining groups with two attributes Say the scan found "Syrup Vanilla" (250ml, 750ml) and "Syrup Caramel" (250ml, 750ml, 1L) as two groups. Search for "Syrup", tick both groups and click Combine into one product. You get one variable product, "Syrup", with two attributes, Flavor and Size. A grid shows which pairs exist; a pair no product has, such as Vanilla 1L, isn't sold. The swap button sets which attribute comes first on the product page, and either attribute can be removed. Splitting a variable product Open the Split tab, or click Split into simple products under any variable product in Products > All Products. Each variation gets a suggested name ("Classic Tee Black") that you can edit. Click Split and each checked variation becomes a simple product. The variable product is hidden, not deleted, and Undo in History brings it back. A variable product the plugin made offers Undo instead of Split, so you get your original products back rather than new copies. Who it's for For developers

安装:

  1. Make sure WooCommerce is installed and active.
  2. In your WordPress admin, go to Plugins > Add New, search for "Variation Converter", then install and activate it.
  3. Go to Products > Variation Converter. Search for a product on the Combine tab, or open the Split tab.
You need a role that can manage WooCommerce, such as Shop Manager or Administrator. Undo covers every conversion, but take a database backup before converting many products at once. It's good practice.

屏幕截图:

  • Search on the Combine tab: the suggested groups that match, products not in a group, and Combine into one product.
  • Reviewing a variable product with two attributes, Flavor and Volume, with the grid of pairs that exist.
  • Splitting a variable product into simple products, with a suggested name for each.
  • The History tab, where every conversion can be undone.

升级注意事项:

1.0.0 First stable release. Since 0.14.0: one toolbar across Combine, Split and History with bulk Undo; private and draft products can be converted without being published; the Attribute spelling setting is removed, so attributes keep the names you type. 0.12.0 Set one name is removed; Combine into one product names the product and its variations. New variable products get no SKU of their own, and a swap button sets which of two attributes comes first. 0.7.0 The Combine tab starts with a search. Combine into one product and Create a product for each group are now buttons above the list, not Bulk actions. 0.3.0 The WP-CLI command is renamed to wp varconv. Update any scripts that call wp variation-converter.

常见问题:

How do I convert simple products to a variable product in WooCommerce?

Install this plugin, go to Products > Variation Converter, search for the product name, tick the simple products that belong together and click Combine into one product. Check the attribute (such as Color or Size) and the label of each variation, then click Create variable product. Each simple product becomes a variation of the new variable product.

How do I change a simple product to a variable product without losing its SKU, price or stock?

The usual WooCommerce way is to change the product type to Variable and type every variation in by hand. This plugin does it from the products you already have: each simple product becomes one variation and keeps its SKU, price, stock and image. Undo in the History tab puts the simple products back.

Can I bulk convert simple products to variable products?

Yes. The plugin scans your catalog and suggests every group of products that look like variants of one product. Tick as many groups as you like and click Create a product for each group. Large batches run in the background. With WP-CLI, wp varconv combine --all does the same.

Will this delete my products?

No. The products you convert from are hidden from your shop and search results, not deleted, and Undo shows them again. Deleting the plugin doesn't change your products either. Once you're sure you'll keep a combined product, you can choose Trash originals on its History row to move the hidden originals to the Trash. Their reviews move to the variable product and their old links keep redirecting. Undo restores them while they're in the Trash; after the Trash is emptied, that combine can no longer be undone.

What happens to existing orders, reviews and links?

Past orders still point to the original products. An original's old URL redirects (301) to its variation's own link: the variable product's URL with that variation's options added, such as ?attribute_color=Black. WooCommerce uses those to preselect the options on the product page, so shoppers usually land on the right variant, though some themes ignore them. Reviews stay on the original products and aren't copied, until you use Trash originals, which moves them to the variable product. If you later make every variation of a variable product simple, the variable product moves to the Trash and its old link, and each variant link, redirects to the new simple products.

What if I undo after customers have ordered the variable product?

Undo deletes the variable product and its variations. Orders keep their line items and totals, but those lines no longer link to a product. If the variable product has already sold, it's usually better to keep it. The same goes for undoing a split.

How does it decide which products belong together?

Two things must match: the SKUs share a family (SE1421-01 CL and SE1421-03 CL, or D1701-12 and D1701-14), and the product names start with the same words. Whatever follows the shared words becomes the variant label, such as "Black". You review every group before anything is created.

It missed a product. How do I add it?

Search for it on the Combine tab. It shows under Products not in a group, and you can tick it along with the group it belongs to. If you already combined the group, tick the product and click Add to a combined product, then choose the variable product and its labels. In Products > All Products the bulk action of the same name works for any simple product, even one without a SKU. Undo in History gives it back with the others.

It grouped products that aren't variants.

Mark the group Skip, not variants and it stops appearing. Skipped groups can be restored from the Skipped view.

My products don't have SKUs. Will it work?

Not yet. The plugin only works with simple products that have a SKU. Matching by name alone is being considered for a future version.

Which products does it look at?

Simple products with a SKU that are published, private, pending or draft, and not hidden from the catalog. Scheduled and trashed products are left out.

Can a product have two attributes, like flavor and size?

Yes. Tick two or more groups and click Combine into one product to get a variable product with two attributes. See "Combining groups with two attributes" above. More than two attributes isn't supported.

It guessed the wrong attribute. Can I change it?

Yes. The attribute name and every label are only suggestions. Edit them before you click Create variable product.

Why are there two products with the same SKU after a conversion?

The originals are kept, hidden, so Undo can restore everything exactly. Each SKU is on the hidden original and on its variation. Once you're sure you'll keep the variable product, you can delete the hidden originals yourself.

How do I change a variation's stock in Quick Edit?

Each variation keeps its own stock, taken from its original. WooCommerce's own Quick Edit stock fields set a count on the variable product, which none of its variations sell from, so on variable products the plugin made, Quick Edit shows a Variant stock box instead, with one number per variation. Change a number and click Update. The Stock column shows the variations' total; hover over it to see each one's count. You can also edit stock on the product's Variations tab.

I changed some products and the list didn't update.

Scan results are kept for 30 minutes. Click Scan again to refresh them.

Can I convert a variable product back to simple products?

Yes. Use the Split tab, or the Split into simple products link under a variable product in Products > All Products. Each variation becomes a simple product with its own SKU, price, stock and image.

Can I make just one variation a simple product?

Yes. On the product's Variations tab, click Make simple product on that variation, or check it on the Split tab and click Make checked simple, keep the rest. You can give the new product its own name and categories. The rest of the variable product stays as it is. The variation is disabled, not deleted, and its old link sends shoppers to the new product. If Combine made the variation, its original simple product comes back instead of a new one. When you make the last variation for sale simple, the variable product has nothing left to sell, so it moves to the Trash and its old link sends shoppers to the new products. Undo is in History, and it restores the variable product too.

Why can't I split some variations?

A variation set to "Any" for an attribute (for example "Any Size") isn't one specific product, so there's nothing to turn into a simple product. Give it a specific value first.

Does it work with my search plugin?

It reindexes changed products in Relevanssi automatically. Other search plugins pick up the changes on their next reindex.

Does it send data anywhere?

No. It makes no remote calls and has no tracking. Everything happens in your own WordPress database.

Where can I get help or report a bug?

Ask questions in the support forum here on wordpress.org. Bug reports and pull requests are welcome on GitHub.

更新日志:

1.11.2 1.11.1 1.11.0 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.0 1.8.0 1.7.1 1.7.0 1.6.0 1.5.1 1.5.0 1.4.4 1.4.3 1.4.2 1.4.1 1.4.0 1.3.2 1.3.1 1.3.0 1.2.0 1.1.0 1.0.1 1.0.0 0.17.1 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.3 0.12.2 0.12.1 0.12.0