Glenstorm Posted January 3, 2019 Share Posted January 3, 2019 Is it possible to assign a different page template for different categories? For instance, we want to sell some tickets to an event on our shop. It would be helpful to organize the details and customization sections differently than the normal products. Thanks Link to comment Share on other sites More sharing options...
razaro Posted January 3, 2019 Share Posted January 3, 2019 Yes it is possible, in different ways depending on your PrestaShop version. for 1.7 : https://devdocs.prestashop.com/1.7/themes/reference/templates/templates-layouts/#specific-templates Link to comment Share on other sites More sharing options...
Glenstorm Posted January 4, 2019 Author Share Posted January 4, 2019 Thanks for the response. I found that page but I'm not sure how to implement it. It seems that if I want a custom template for a product with ID=6 that I would create the custom template at: catalog/product-6.tpl I don't see how to make that work for every product in a category though. Would I use an if statement to check for the category in a custom template at: catalog/listing/product.tpl and have two different blocks embedded in that template? 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