abhisek Posted October 29, 2013 Share Posted October 29, 2013 (edited) Hello all, I am developing my first theme in prestashop. I noticed on the product page product listing page prestashop adds several tpl files namely, productsort.tpl, breadcrumb.tpl, etc. My breadcrumb.tpl has different structure, but that's no problem -- I can change it inside the breadcrumb.tpl to make it work. But the problem is that my breadcrumb.tpl comes much later inside the page. I can add include file=breadcrumb.tpl but by default prestashop adds breadcrumb.tpl again and much earlier. What I mean is this: Prestashop tpl order: 1. Productsort.tpl 2. Breadcrumb.tpl 3. product.tpl And my theme: 1. Breadcrumb 2. Sidebar 3. productsort 4. productinfo How can I achieve this? I don't want to edit any core file, if that's not extremely necessary. TIA Edited October 31, 2013 by abhisek (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 29, 2013 Share Posted October 29, 2013 hello products sort on product page? i don't know any sorting feature on product page, can you shed some light on this please? Link to comment Share on other sites More sharing options...
abhisek Posted October 29, 2013 Author Share Posted October 29, 2013 I am using PS1.5. There's a file named product-sort.tpl inside the default theme. These files are added to the product page by prestashop system. I just want to change the order of these files. That's all. Link to comment Share on other sites More sharing options...
vekia Posted October 29, 2013 Share Posted October 29, 2013 I am using PS1.5. There's a file named product-sort.tpl inside the default theme. These files are added to the product page by prestashop system. I just want to change the order of these files. That's all. by default product-sort.tpl file is not attached to product page. Link to comment Share on other sites More sharing options...
abhisek Posted October 30, 2013 Author Share Posted October 30, 2013 My apologies. It's not the product page, it's the product listing page. I messed one with another. Link to comment Share on other sites More sharing options...
vekia Posted October 30, 2013 Share Posted October 30, 2013 ok thank you so much for clarification! now it's clear. open category.tpl file you've got there: {include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./errors.tpl"} ... {include file="$tpl_dir./category-count.tpl"} ... {include file="$tpl_dir./pagination.tpl"} ... {include file="./product-list.tpl" products=$products} ... {include file="./product-sort.tpl"} {include file="./product-compare.tpl"} {include file="./nbr-product-page.tpl"} ... change order of these files Link to comment Share on other sites More sharing options...
abhisek Posted October 31, 2013 Author Share Posted October 31, 2013 Thank you, vekia! Helped a lot. Couldn't locate where the action was happening. And sorry about the earlier misunderstanding. My bad. :-/ Link to comment Share on other sites More sharing options...
vekia Posted October 31, 2013 Share Posted October 31, 2013 no worries im glad that i could help you in this case hope that everything works now for you as you expected with regards, Milos 1 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