jiadehu Posted November 18, 2010 Share Posted November 18, 2010 Hi,Does anyone know how I can add a "View All" link on the pagination of my product pages? I have searched through lots of posts including here and here, although could not find my exact solution. Please see attached image of how I would like it to appear. Thank you in advance! Link to comment Share on other sites More sharing options...
jiadehu Posted November 18, 2010 Author Share Posted November 18, 2010 Hi,Does anyone know how I can add a "View All" link on the pagination of my product pages? I have searched through lots of posts including here and here, although could not find my exact solution. Please see attached image of how I would like it to appear. Thank you in advance! Link to comment Share on other sites More sharing options...
kipme Posted December 4, 2010 Share Posted December 4, 2010 if you have solved the problem, tell me how? Link to comment Share on other sites More sharing options...
seldon.paul2 Posted December 4, 2010 Share Posted December 4, 2010 If you know the total number of the entire product to be shown at that page, is good but, it would be forgotten and when view all is used with the product number moves 1000, how slow it would be to some other countries. So, if you start adding there is option pop out, with pull-down combo box, 10 per page, 20 per page, 30 per page, and so on. User can set it. There is a setting in BO side. I think it is by far better way of implementation, although I didn't answeryour question. Link to comment Share on other sites More sharing options...
jiadehu Posted December 4, 2010 Author Share Posted December 4, 2010 Hi Kipme,No I have not, still hoping someone will have an answer soon! I'll let you know if anyone comes up with something. Link to comment Share on other sites More sharing options...
zwacklmann Posted December 6, 2010 Share Posted December 6, 2010 The brute force approach would be as follows:Find your theme's pagination.tpl. In there, you'll most likely find a one form tag only. That's the form responsible to create the drop down menu out of which the user is supposed to pick the number of items to be displayed.In between the select tags, disable what is there and add your new "all"-option which simply is any large number (larger than the number of product in you store) like this {l s='All'} Then go ahead and assign the submit button an "all" tag and use css to hide the selection form. done. Link to comment Share on other sites More sharing options...
kipme Posted December 6, 2010 Share Posted December 6, 2010 I found a suitable solution for me in this thread http://www.prestashop.com/forums/viewthread/31982/third_party_modules/pagination Link to comment Share on other sites More sharing options...
jiadehu Posted December 7, 2010 Author Share Posted December 7, 2010 Kipme: Yes, thank you I read that post as well, although was not exactly what I am seeking. Still working on this, I'll let you know... Link to comment Share on other sites More sharing options...
viar Posted July 11, 2011 Share Posted July 11, 2011 what if we want to put View All next to pagination like on attached file on first post in this thread? Link to comment Share on other sites More sharing options...
viar Posted July 11, 2011 Share Posted July 11, 2011 a little tweak by adding new line on pagination.tpl , and it works: {l s='View All'} » after: {l s='Next'} » Link to comment Share on other sites More sharing options...
vivek tripathi Posted July 11, 2011 Share Posted July 11, 2011 Go to themes->pagination.tplChange following code {if $pages_nb > 1 AND $p != $pages_nb} {assign var='p_next' value=$p+1} goPage($requestPage, $p_next)}">{l s='Next'} » {else} {l s='Next'} » {/if} Replace with {if $pages_nb > 1 AND $p != $pages_nb} {assign var='p_next' value=$p+1} goPage($requestPage, $p_next)}">{l s='Next'} » {else} {l s='Next'} » {/if} {assign var='all' value=$link->getPaginationLink('category', $category, true, false, true, false)} goPage($all)}&n;={$nb_products}">Viewall {/if} play with css to moderate look and feel 2 Link to comment Share on other sites More sharing options...
Slieptsov Posted July 18, 2011 Share Posted July 18, 2011 Apprentice, thanks!!! It works!!! But your code is a little bit broken, I have done it like this: View All.txt 4 Link to comment Share on other sites More sharing options...
noesac Posted July 18, 2011 Share Posted July 18, 2011 Hum interesting idea...I might try this Link to comment Share on other sites More sharing options...
cammo Posted July 18, 2011 Share Posted July 18, 2011 Me too.. Nice feature. Link to comment Share on other sites More sharing options...
viar Posted July 20, 2011 Share Posted July 20, 2011 this View All should be default feature for PS I suggest Link to comment Share on other sites More sharing options...
Kent88z Posted March 26, 2012 Share Posted March 26, 2012 I'm using only text links for pagination in v1.4.7 and added the suggested code which definitely works and gives the "View All" link but when you select "View All" all the pagination links disappear. Maybe someone can update the code so when you select the "View All" link all the pagination links stay put. Best example I can give is the way it works on any Victoria's Secret category page. Link to comment Share on other sites More sharing options...
nicemedia Posted March 28, 2012 Share Posted March 28, 2012 An other good solution would be to keep pagination for search engine bots but to use an infinite scrolling solution for "real" people (detection based on javascript support). There are modules for this, such as infinite endless scroll http://addons.prestashop.com/en/merchandizing/4899-Infinite-Endless-Scroll.html But... can you explain why you want to keep pagination on a listing that doesn't need it ? Link to comment Share on other sites More sharing options...
Kent88z Posted March 28, 2012 Share Posted March 28, 2012 I'd like to keep the pagination links even when they've selected "view all" so they still have the option of clicking page 1, or 2, next, etc. rather than clicking the browsers back button. Secondly, on my site when the pagination links disappear all products shift upwards which I don't care for design wise and I haven't figured out in the css how to stop that. I actually discovered something on the old navy website which I kind of like. Instead of keeping all the pagination links when you select View All (in their case See All) it creates a link to revert back to the default number of products per page. Here's an example link: http://oldnavy.gap.com/browse/category.do?cid=60492&pageID=-1&actFltr=false However, I can't figure out in Pagination.tpl how to add code to keep any link still visible when selecting View All. Link to comment Share on other sites More sharing options...
saurabhdrish Posted April 18, 2012 Share Posted April 18, 2012 thanks a lots ,it works for me Link to comment Share on other sites More sharing options...
rekram Posted December 10, 2012 Share Posted December 10, 2012 Hey it seems to not working with blocklayered module, because the page is empty after I click View All button. Link to comment Share on other sites More sharing options...
omgzhobbs Posted January 2, 2014 Share Posted January 2, 2014 Anyone got a up to date code for making this work? None of the code works that have been posted, just returns a 404 error on clicking 'view all'.Thanks loads! Link to comment Share on other sites More sharing options...
26filip Posted September 17, 2014 Share Posted September 17, 2014 I'm using <a href="{$link->goPage($requestPage, 1)}?n={$nb_products}">View all</a> 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