| 开发者 | craigpestell |
|---|---|
| 更新时间 | 2026年11月26日 04:28 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp varconv combine creates the suggested groups (with --dry-run), and wp varconv undo reverses a conversion. Run wp help varconv for the options.varconv_scan_products, varconv_brand_names, varconv_collections, varconv_variation_meta, varconv_redirect_url and varconv_quick_edit_variant_stock (turn the Quick Edit variant stock box on for other variable products, or off).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.
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.
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.
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.
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.
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.
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.
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.
Mark the group Skip, not variants and it stops appearing. Skipped groups can be restored from the Skipped view.
Not yet. The plugin only works with simple products that have a SKU. Matching by name alone is being considered for a future version.
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.
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.
Yes. The attribute name and every label are only suggestions. Edit them before you click Create variable product.
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.
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.
Scan results are kept for 30 minutes. Click Scan again to refresh them.
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.
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.
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.
It reindexes changed products in Relevanssi automatically. Other search plugins pick up the changes on their next reindex.
No. It makes no remote calls and has no tracking. Everything happens in your own WordPress database.
Ask questions in the support forum here on wordpress.org. Bug reports and pull requests are welcome on GitHub.
varconv/v1, which need the manage_woocommerce capability. The admin-post and admin-ajax handlers are gone. The JavaScript source is in src/.varconv_added_to.varconv_originals_trashed.wp varconv make-simple <variation-id>...; wp varconv undo also undoes these.varconv_made_simple and varconv_made_simple_undone, and filter varconv_made_simple_redirect_url.varconv_quick_edit_variant_stock filter turns the box on for other variable products, or off.wp varconv combine --skip=noprice can leave such groups out.wp varconv spelling are gone. Attributes keep the names you type.