Jump to content

How get & display main category name (& not default category) in product.tpl ?


missill

Recommended Posts

Hello everybody,

 

I have difficulties to understand how prestashop works, even i read developer section.
 
I just want to display some variables like customer informations in header or product category in product.tpl and i don't know the best way to do ?
 
How to get the parent category (name) and display it in product.tpl. Should I override the ProductController to assign main category in smarty variable for the product.tpl ? What's the function ?
 
Thanks for any help.
 
 
 
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...