I'm trying to figure out some code that will loop thru pre-defined lists and output all combinations (concatenations). Specifically of shirts and size/color/etc options.
For example, here are some lists:
My code needs to output something like this:
So basically every combination of every option for each sku.
I have been doing some looping and can get there in a very ugly, inefficient manner, but I just know there's an easier way.
Any help appreciated.