Hi there,
I've been coding a way to import and sync products from another website. And I've been wondering how to make sure (variable) product parts are created correctly.
With simple products I normally use $product = new \WC_Product_Simple() and with variable products $product = new \WC_Product_Variable(). What is your recommended way of handling product-parts, variable-product-parts and product-part-variations?
Best
J