I need help with this.
I would like to display the subcategory OR Root category that a product resides. The display would come in the products.tpl template.
Trick is I want to strip the slashes and either the parent or child categories from the display.
So if I had a product in Potato/Chips/Salt & Vinegar, it would only display Potato or alternately Salt & Vinegar.
Anyone?
|