generalexperts Posted March 16, 2014 Share Posted March 16, 2014 (edited) I am wondering how to delete the "Previous (page 1,2,3,4,5,etc) Next" part of the sortPagiBar toward the top of the page. And just show the Sort by & Show # of products per page at the top. Then the opposite at the bottom. Remove the Sort by & Show # products per page, and leave just the "<<Previous/page number/Next>>" Lots of duplicate functions not needed... I'm using Prestashop 1.5.4.1. Thanks! Edited July 18, 2014 by generalexperts (see edit history) Link to comment Share on other sites More sharing options...
Rolige Posted March 16, 2014 Share Posted March 16, 2014 Hi generalexperts,On your active theme lookup the file category.tpl and delete one of the line:{include file="$tpl_dir./pagination.tpl"}Regards Link to comment Share on other sites More sharing options...
generalexperts Posted March 16, 2014 Author Share Posted March 16, 2014 The only effect this had was it removed the 'Previous {pages} Next' part on the top of the product list. What should I do for the 'Sort' part at the bottom. Also looking for the same effect on the manufacturing page (I renamed it Brands on my site). Thanks! Link to comment Share on other sites More sharing options...
Rolige Posted March 17, 2014 Share Posted March 17, 2014 Please take a look at this code: {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} If you want to delete all of the top, just delete this below: <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> The final code would be look like this below: {if $products} {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} Or you can hide by CSS style, the final code would be look like this below: {if $products} <div class="content_sortPagiBar" style="display:none"> {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} I hope this help you. Regards Link to comment Share on other sites More sharing options...
generalexperts Posted March 17, 2014 Author Share Posted March 17, 2014 I'm Sorry I don't exactly understand that. I'm not looking to delete everything. Just the next/previous on the top and leave it for the bottom. And, I want to keep the sort by on the top and delete it for the bottom. Is that what you mean by "The final code would be look like this below:" ? thanks! Link to comment Share on other sites More sharing options...
generalexperts Posted April 6, 2014 Author Share Posted April 6, 2014 (edited) For the effect I was going for I changed part of the category.tpl to (approx Line 99): <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./product-compare.tpl"} {include file="./nbr-product-page.tpl"} </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> {include file="./pagination.tpl"} </div> Edited April 6, 2014 by generalexperts (see edit history) Link to comment Share on other sites More sharing options...
generalexperts Posted July 18, 2014 Author Share Posted July 18, 2014 (edited) How do I delete the bottom part of the SortPagibar in the "Manufacturing" page? It worked for pages like this: http://www.mydomain.com/17-blocks but it doesn't work for the manufacturing page (renamed "Brands"). Also the image I had set around to sortpagibar shows a "?" instead of the image. Any ideas on what happened? Thanks! Edited October 29, 2014 by generalexperts (see edit history) Link to comment Share on other sites More sharing options...
generalexperts Posted August 12, 2014 Author Share Posted August 12, 2014 Still looking for help... Thanks Link to comment Share on other sites More sharing options...
Knuden Posted February 23, 2015 Share Posted February 23, 2015 When I tried to remove the sortPagiBar, by comment it out, all my products move down under the category sidebar. How to move the product back beside the sidebar? 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