And if I had assigned the different variant colours to a product image in the product section, I was able to select the colour variant and it will be assigned to the correct product image, however there is a problem - all my product images for that one product is strangely not allowed to be displayed.
So it’s either one or the either. So that’s why I’m trying to find a way to code it, so that works for me.
Thanks for your input though!