marty69 Posted November 2, 2011 Share Posted November 2, 2011 Hello, I have 3 main categories A, B and C in my shop. Each with a lot of sub-categories. I wonder how to display the name of the root category (A, B or C) wherever we are respectively in one of these categories. Is there a hack to do in bloccategories.php ? Or a variable still exist somewhere (something like $currentCat.parent) ? Link to comment Share on other sites More sharing options...
marty69 Posted November 2, 2011 Author Share Posted November 2, 2011 I was able to get the root category ID. How can i get the category name from this ID ? I tried $nomCat=Category::getName($rootCateg->id_category); but with no luck Link to comment Share on other sites More sharing options...
marty69 Posted November 2, 2011 Author Share Posted November 2, 2011 solved. see solution here Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now