I need for my e-commerce website to add products with multiple variants: in the image below there is a tshirt with multiple colors, sizes and materials.
So in php I have two arrays, the red one containing the name of the variants and the green one containing the said variants.
I need to output something like this:
Culoare: Rosu - Marime: L - Material: Stofa
Culoare: Rosu - Marime: L - Material: Rafie
Culoare: Rosu - Marime: XL - Material: Stofa
Culoare: Rosu - Marime XL: Material: Rafie
...
Culoare: Verde - Marime: L - Material: Stofa
Culoare: Verde - Marime: L - Material: Rafie
...
There are 18 combinations
I tried like for hours and i can't get my head around this. Any help is apreciated!