Conditional Logic Based on Variable w/ Multiple Colors?

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!

Hello @lukefinsaas,

Thanks for writing to us.

Regretfully there is no option for that at the moment. In case you want to achieve that feature, I would suggest you please contact a developer who can assist you with your concerns or you can avail One where customization questions are answered or you can avail Elite where we do custom development. Please note we don’t provide custom development support. It is out of the support scope.

Thanks for understanding

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.