Hello.
I need advice on add / update product combinations.
$id_product = 12345; $attributes = array(1,2,3,20,21,22); // id_attribute in ps_attribute.id_attribute /* 1 - 3 = size, 20 - 22 = color */ /* all attributes in databse exists */ $product = new Product((int) $id_product); $combinations = array(); $combinations[] = ??????????????????????; $resetExistingCombination = true; $product->generateMultipleCombinations($combinations, $attributes, $resetExistingCombination);
How to correctly add values to the generateMultipleCombinations function?
Thank you