So I'm in the item template file and I want to hard code a link that goes up two levels in the category tree. What's the proper syntax for that?
Here's what I have: php echo $this->item->category->link;
But if do this: php echo $this->item->category->category->link;
it goes to the home page.
Here's my category hierchy:
Category 1
- Category 2
-Category 3
- Item 3-1 (need link to go to Category 2 from here)
Here's what I have: php echo $this->item->category->link;
But if do this: php echo $this->item->category->category->link;
it goes to the home page.
Here's my category hierchy:
Category 1
- Category 2
-Category 3
- Item 3-1 (need link to go to Category 2 from here)