generateCombinations ( array ids_attributes_of_combination1 , array ids_attributes_of_combination2 , array ... ) : array
Generate combinations for ecommerce. The array is formed with id_attribute in key and id_attribute_value in value .
See also
generateCombinationsWithAttributeCodesExample
list = ["toto","tata","tata","vroum","vram","vram"]
list2 = ["hi","ho","hu",]
console(generateCombinations(list, list2))
/*result = [
[toto, hi],
[tata, hi],
[tata, hi],
[vroum, hi],
[vram, hi],
[vram, hi],
[toto, ho],
[tata, ho],
[tata, ho],
[vroum, ho],
[vram, ho],
[vram, ho],
[toto, hu],
[tata, hu],
[tata, hu],
[vroum, hu],
[vram, hu],
[vram, hu]
]*/
Parameters