Hi folks,
A bit out there, but might be valuable for others if we can figure it out.
Client has a lot of clothing products, some with a lot of colors, some with a single color. I want to create a little tag that says ‘multiple options’ on the Shop page (Pro WC Archive Layout), if the product has multiple color variations.
I’m looking at the string “_product_attributes” and wondering if it’s possible to create a piece of logic that says ‘display if there are three instances of “pa_color”’ in the string. (There doesn’t appear to be a more ‘exposed’ indicator of multiple colors, other than a raw count.)
I’m not sure how this logic would work, but before I dive in, I wanted to see if this even sounds possible?
Thanks!