Hey all,
I could really use a loop, inside the VariantGroups loop, that contains all the variants selected on a given product.
An example
Let's say I have a jacket, which is available in these combinations:
Large Black
Large Purple
Medium Red
Medium Yellow
Instead of having to script my way out of all the available variants, I would like a loop inside VariantGroups, which contains the values Large and Medium, and ONLY those values, because they're the only ones selected as available variants in the backend, in that VariantGroup. And then a loop that contains the selected color values, Black, Purple, Red and Yellow, and only those colors - even if other colors are available in the backend.
Currently, the only way to work around this, is to write out all of the variants in a given group, and filter them out by comparing them with the available variant combinations.
We could call it VariantAvailableOptions.
Have a great weekend,
Mads