I will explain what i have created programmatically.
- Created variant parent product
- Setted non-variant product attriubutes to parent product
- Setted variant product attributes to parent product
- Created each variation and saved it
The problem i have is that i am not creating every possible variation with every possible price .
I am currently creating
( base product X A)
( base product X B)
( base product X C)
Instead of ( Base product that can have the product attributes of A , B , C)
Lets imagine a product with the base price of 10
With every variant product attribute selected the final price should be ( 10 + 5 + 5 + 5 ) ( 25 )
Hope i explained it clear!