Kerm Posted June 15, 2012 Share Posted June 15, 2012 Hello! I have problem with Blocklayered module and 2x pagination on page. On category page one upper and one lower(default) pagination block, and when use filter in Blocklayered block, after page refresh, upper pagination block disappear. Disappear only <ul> block where we see how many product pages. I tried to play around this problem but did not find solution. I think i found what hiding this block, this code from blocklayered.js update pagination block after using filter and probably hide new(second) upper pagination block: if ($(result.pagination).find('ul.pagination').length) { $('div#pagination').show(); $('ul.pagination').replaceWith($(result.pagination).find('ul.pagination')); } else if (!$('ul.pagination').length) { $('div#pagination').show(); $('div#pagination').html($(result.pagination)); } else { $('ul.pagination').html(''); $('div#pagination').hide(); } Can some one help me? Link to comment Share on other sites More sharing options...
Kerm Posted June 15, 2012 Author Share Posted June 15, 2012 (edited) Ok, i think i find solution, after this JS code need add: $('ul.pagination').clone().appendTo('.upper-pagination div#pagination'); where .upper-pagination class of upper pagination block with this code inside (category.tpl): {include file="$tpl_dir./pagination.tpl"} Edited June 15, 2012 by Kerm (see edit history) Link to comment Share on other sites More sharing options...
faDdy Posted March 16, 2013 Share Posted March 16, 2013 Hi Kerm, I tried your solution on Prestashop 1.4.8.2 but its not working , can you please help me in fixing this problem? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts