Tintarella Posted May 3, 2010 Share Posted May 3, 2010 My web-shop only contains a few number of products which means that I don't need the "sort by" or "items per page" functionalities. How do I remove these? Link to comment Share on other sites More sharing options...
rocky Posted May 3, 2010 Share Posted May 3, 2010 Just {* comment out *} product-sort.tpl and pagination.tpl in your theme's directory. Link to comment Share on other sites More sharing options...
Tintarella Posted May 3, 2010 Author Share Posted May 3, 2010 You mean that I should change name of those two files in my theme directory? I renamed it to: {*product-sort.tpl*} ...it changed icon but I still see the function..what's wrong? Link to comment Share on other sites More sharing options...
Tintarella Posted May 3, 2010 Author Share Posted May 3, 2010 Not in bold..but as you said, with { and a * on each side of the filename.. Link to comment Share on other sites More sharing options...
Tintarella Posted May 3, 2010 Author Share Posted May 3, 2010 I just can't get it to work..anyone? :| Link to comment Share on other sites More sharing options...
rocky Posted May 4, 2010 Share Posted May 4, 2010 You shouldn't change the filename, you should {* comment out *} the contents of the files. Link to comment Share on other sites More sharing options...
meco2by4 Posted January 12, 2011 Share Posted January 12, 2011 hey, can you also please tell me how to do this? i tried commenting out with {* and *} and the beggining and end of the content but still no luck.. Link to comment Share on other sites More sharing options...
rocky Posted January 12, 2011 Share Posted January 12, 2011 Just add {* to the top of pagination.tpl and product-sort.tpl and *} at the bottom and the pagination and product sort options should disappear from your website. Link to comment Share on other sites More sharing options...
Festival Trade Posted July 12, 2013 Share Posted July 12, 2013 Hello Rocky. On the same topic... I need to move the "sote by" and "pagination" from the top of the page "products list" to the bottom of the page. How do I move this ? Link to comment Share on other sites More sharing options...
vekia Posted July 12, 2013 Share Posted July 12, 2013 in this case you have to edit the category.tpl file located in your theme directory you've got there something like: {if $products} <div class="content_sortPagiBar"> {include file="$tpl_dir./pagination.tpl"} <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./product-compare.tpl"} {include file="./nbr-product-page.tpl"} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./product-compare.tpl"} {include file="./nbr-product-page.tpl"} </div> {include file="./pagination.tpl"} </div> {/if} just remove / comment first pagination code: <div class="content_sortPagiBar"> {include file="$tpl_dir./pagination.tpl"} <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./product-compare.tpl"} {include file="./nbr-product-page.tpl"} </div> </div> Link to comment Share on other sites More sharing options...
Hallo? Posted August 14, 2013 Share Posted August 14, 2013 Hi! I have done it that way. But on pages "New Products, Bestsellers, Offer is the still displayed. Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 so maybe you use different teplate file for these pages? (im asking because i've noticed that you use non-default template) Link to comment Share on other sites More sharing options...
Hallo? Posted August 15, 2013 Share Posted August 15, 2013 No. I also have to test an original Prestashop. Since nothing has been changed to it. Still, the same problem occurs because of too. If I turn off the sorting function according to the instructions, the pages listed on the looks too. Regards Link to comment Share on other sites More sharing options...
Alexanderleo Posted October 15, 2013 Share Posted October 15, 2013 When i try to comment out the text in product-sort.tpl and pagination.tpl my screen gets white when i refresh the page. Can anybody help me? Link to comment Share on other sites More sharing options...
vekia Posted October 15, 2013 Share Posted October 15, 2013 When i try to comment out the text in product-sort.tpl and pagination.tpl my screen gets white when i refresh the page. Can anybody help me? it mean that you've got some parse error in code. It's probably related to wrong code that you use. can you show how it looks like after modifications? Link to comment Share on other sites More sharing options...
Alexanderleo Posted October 19, 2013 Share Posted October 19, 2013 I found another topic and got it fixed. I was delting to much code. Link to comment Share on other sites More sharing options...
vekia Posted October 19, 2013 Share Posted October 19, 2013 thank you for information, are you remember where you found this information? can you share url to topic here? it will be helpful for other merchants thanks in advance 1 Link to comment Share on other sites More sharing options...
rarababy Posted May 24, 2014 Share Posted May 24, 2014 Hi, Another question on editing/changing the pagination bar. I would like to remove it from the category page but keep it on the subcategories pages. I've tried editing category.tpl file but, unfortunately my lack of knowledge stopped me from succeeding. Help please :-) Sylwia Link to comment Share on other sites More sharing options...
vekia Posted May 24, 2014 Share Posted May 24, 2014 in this case is necessary to check category level if category level > 2 then display it, if not - hide {if $category->level_depth>2} CODE OF SORT HERE {/if} Link to comment Share on other sites More sharing options...
Ahmed Razib Posted August 15, 2021 Share Posted August 15, 2021 On 5/3/2010 at 1:33 PM, rocky said: product-sort.tpl where i get this file ? 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