Jump to content

Showing parent category name in a category title


Recommended Posts

Hi

I want to show the name of the parent category in the H1 tag with my category name.

 

For instance, I have a subcategory called "jackets", on the parent category "men's clothing".

 

What I want to do is show the parent category in small text above the category. I have attached screenshots of what i would like to do. First picture is existing page, second picture has text I'd like inserted. Any help appreciated!

post-457272-0-31494600-1390825440_thumb.jpg

post-457272-0-98128900-1390825476_thumb.jpg

Link to comment
Share on other sites

in this case it is necessary to modify contoller, it's because by default in product.tpl file there is no cateogry variable with name of parent category.

 

so, in this case it's necessary to modify ProductController, pass to smarty array variable with parent category name - then you will be able to use it in your template file.

Link to comment
Share on other sites

×
×
  • Create New...