0

I'm pulling out all the values ​​of the color attribute of the products associated with the product configurable with this foreach.

foreach($simple_collection as $simple_product){ echo $simple_product->getAttributeText('color'); }

The problem is that in some cases, for example for mesh sizes, the value of the color option attribute can be repeated and I do not want this. I would like the value of the color attribute to be written only once.

How can i do? Thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.