Condition to show div element if there are woocommerce tags

Hello,

I’m trying to show the main container based on if there are WooCommerce tags.

First I thought to use string but I don’t find dc shortcode for tags. Then I tried with a number option and put {{dc:term:count}} but none of the expressions worked.

And now I’m out of ideas on how to show the element if the product has tags. The thing is inside the main div there is a text element that should also be hidden if there are 0 tags.

Best regards

Hi @ofirdoo,

Thanks for reaching out.
If you are using the Query Builder, you can use the Post( has taxonomy ) condition as shown in the given screenshot.

Hope it helps.
Thanks

Hi,

thank you. That works. I completley missed this option.

Best regards.

Hi @ofirdoo,

Glad that we are able to help you.

Thanks

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