WooCommerce IF statements not working

I am trying to use the WooCommerce Conditional Tags to only include a template into specific product pages.

However my statements aren’t working, and they show on all pages.
I’d like to NOT display my template in a specific category and its product pages:

// Show in Shop Page OR NOT in Products IDs 15852,15859,15863,15866 OR NOT Category Archive Gift Cards

I’ve also tried the opposite:

Can you please advise how to get it to work?

Our website: https://grindersforlife.com/shop


Read more here:: WooCommerce IF statements not working

Leave a Reply

Your email address will not be published. Required fields are marked *