最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Woocommerce convert simple products to variations

programmeradmin1浏览0评论

With Woocommerce, I am trying to combine already existing simple products into one single variable product.

For Example:

  • Simple1 (Color- Red , Size-X) Simple2 (Color- Green ,Size-X)

  • To Variable (Color- Red|Green, Size-X)

In Magento, we can create a configurable product and assign simple products to it, but that functionality not exist in Woocommerce. So I am trying to achieve this by custom function. Where admin can select multiple simple products and make those product to variations add assign to Variable product.

In Woocommerce all the products are saved as post with post_type product, but variation product alone having post_type 'product_variation' and parent id of variant product. Can I update this two fields alone? It will be a proper way?

发布评论

评论列表(0)

  1. 暂无评论