missill Posted April 18, 2016 Share Posted April 18, 2016 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 More sharing options...
missill Posted April 20, 2016 Author Share Posted April 20, 2016 Ok i overrided product.php class and add a custom function that i assign in a smarty variable in product.tpl ! 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