Mukesh Ravi Posted June 6, 2013 Share Posted June 6, 2013 Hi, While working on PS 1.5 I found that pagination on product listing does not work properly when I enable "layered navigation block". When I disable "layered navigation block" block, pagination works fine. Is there any solution to solve this issue. Please help me. Thanks in advance. Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted June 6, 2013 Share Posted June 6, 2013 Hi, do you use the custom theme? Is your store in live? Regards Link to comment Share on other sites More sharing options...
Mukesh Ravi Posted June 7, 2013 Author Share Posted June 7, 2013 I have solved the issue. Just go to "layered navigation block" module -> then re-generate the indexing. Issue will be solved. Link to comment Share on other sites More sharing options...
Pete78 Posted November 28, 2013 Share Posted November 28, 2013 (edited) Hi, I have a similar issue: Rebuilding index didn't help. Here is what I found out: I have a website URL like this: http://mydomain.com/en/20-categoryname#/price-21-9807 Meaning, layered navigation first page, prices between 21 and 9807 (just an example) The generated links for the pagination look like this: http://mydomain.com/en/20-categoryname#/page-3 nothing happens on a click because of the # if I manually remove the "#" (meaning the anchor) and reload the page, the new page is loaded. but the new pagination link look bad again: http://mydomain.com/en/20-categoryname/page-3#/page-1 -> The problem is the url generating algo. I guess you can find the problem here blocklayered.js, aroung 238: var location = window.location.href.replace(/#.*$/, ''); and following $(this).attr('href', location+current_friendly_url.replace(/\/page-(\d+)/, '')+'/page-'+page); in my opinion the regex is kind of wrong, but I couldn't find a better matching one. Hope this helps somebody to find a solution. Right now: Pagination + Layered Navigation doesn't work.. Edited November 28, 2013 by Pete78 (see edit history) 1 Link to comment Share on other sites More sharing options...
Pete78 Posted November 30, 2013 Share Posted November 30, 2013 Nevermind...was another problem, sorry.. Link to comment Share on other sites More sharing options...
developer_php Posted November 14, 2014 Share Posted November 14, 2014 Hi! same problem here when enable the layred navigation the pagination not work properly Link to comment Share on other sites More sharing options...
joaocoelho Posted March 21, 2015 Share Posted March 21, 2015 Any ideia how to fix that pagination bug? Link to comment Share on other sites More sharing options...
Pete78 Posted May 9, 2015 Share Posted May 9, 2015 (edited) Just refound this thread because I had the problem again for another shop: In that case it was a javascript error which broke the pagination: So not a guarantee but it might be aproblem: Please look into blocklayerd.js in /themes/yourtheme/js/modules/blocklayered find function stopAjaxQuery() { if (typeof(ajaxQueries) == 'undefined') ajaxQueries = new Array(); for(i = 0; i < ajaxQueries.length; i++){ ajaxQueries[i].abort(); } ajaxQueries = new Array(); } and add another check to that function function stopAjaxQuery() { if (typeof(ajaxQueries) == 'undefined') ajaxQueries = new Array(); for(i = 0; i < ajaxQueries.length; i++){ if (typeof(ajaxQueries[i]) != 'undefined') ajaxQueries[i].abort(); } ajaxQueries = new Array(); } Maybe your theme doesn't need this fix...just another hint. Edited May 9, 2015 by Pete78 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts