Check if the product is in a certain category
-
Hi
I am using the Grid Products plugin which is great. I want to check if a product has a certain category (the category’s slug is ‘auto’) from the single product page template and change the layout slightly to show a different ‘buy’ button to other products.
I have tried many ways of doing this – has_term, in_category etc but to no avail. Nothing seems to work.
Help would be much appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Check if the product is in a certain category’ is closed to new replies.