Jump to content

[SOLVED] Blocklayered and 2x pagination on page, filter hide one...


Recommended Posts

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

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 by Kerm (see edit history)
Link to comment
Share on other sites

  • 9 months later...
×
×
  • Create New...