Programatically create a product type with variations
I am looking to create a product type programatically. I have an image, a couple of field types that I have created and product variation associated with the product.
For eg. I have an item called socks, 1 Image, a few field types such as its height, width and product variations that include color, sell price, cost price, sku (both auto/self generated)