garyjj127 Posted January 27, 2014 Share Posted January 27, 2014 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! Link to comment Share on other sites More sharing options...
vekia Posted January 27, 2014 Share Posted January 27, 2014 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 More sharing options...
garyjj127 Posted January 27, 2014 Author Share Posted January 27, 2014 Thanks for the reply. Do you have any idea where I could get instructions on how to do this? I am familiar with shifting code around, but not writing from scratch! Link to comment Share on other sites More sharing options...
Recommended Posts