New Zenner
- Join Date:
- Dec 2010
- Posts:
- 15
- Plugin Contributions:
- 0
Determine if product is in a certain catagory
In my old ZC I had done a bit of custom coding...
If a product is located in category A or one of it's sub categories (A1, A2, A3), I want to print a special bit of text on the product page. In v139, this code worked:
if (substr($cPath, 0, strpos($cPath, '_')) == 1) echo 'My special text'
This code does not work in v154. Can someone tell me what might work?
Thank you!