Hi!
I have WooCommerce products that have various attributes assigned. I am struggling to do two things:
-
Set a condition: If a product has certain product attribute, show/hide an element.
-
Create a query string that outputs products that share a same attribute value as the current product. For example, if the current product has the “Sunglasses-type” attribute value set to “Oval”, I’d like to display a looper with “Oval” sunglasses.
is the above possible? If yes, I would greatly appreciate if you could point me in the right direction.
Thank you!