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?