PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Issue - pagination not being cleared after applying filters

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

I'm having an issue with the pagination, which happens when I re-apply filters after having already searched through some pages.

 

To simplify, imagine this scenario:

There are 2 attributes:"color" and"size". The possible"color" terms are"blue" and"red", while"size" terms are"M" and"S"

There are 90"blue" products, and from those only 20 have size"M".

The number of products per page is set to 30.

 

Once in the shop page, if I apply the blue color filter, I get 3 pages, each containing 30 products.

The URL is:

  • mystore.com/shop/?q=1&pa_color=blue

If I move to the second page, I get this URL:

  • mystore.com/shop/page/2?q=1&pa_color=red

Finally, after applying the M size filter, I get a"page not found" error. This happens because the plugin keeps the pagination filter, while applying the new size filter, as the URL suggests:

  • mystore.com/shop/page/2?q=1&pa_color=red&pa_size=M

 

The pagination filter should be cleared, when new filters are applied. How can this be fixed? Is there a setting that enables this behavior?

Thanks in advance.

Hello

Please  drop me  exact  link to the  issue

Hi.

 

Sorry, I don't understand what exactly are you asking for.

You want the exact link to my store, in a page where the problem occurs? If so, here it is:

http://studio.test/shop/page/4?q=1&pa_composition=chlorofibre.

 

Not sure how this would help, though... This behavior occurs for every attribute or any tag. In that example, the attribute"composition" with value"chlorofibre" has 12 products.

The store is still under development. Hence the".test" domain.

Hello

What plugin version number are you using?

Yes, I need to see your site

The plugin version is: 2.2.5.5 .

 

I can't let you see the site, it's still under development and we're only putting it live when everything is settled.

If you try to replicate this scenario locally, I'm sure you will face the same issue.

Hello

I'm sure everything is working correctly - https://c2n.me/4cR9qns.mp4

It looks like the problem is that there is no slash in your URL.

/shop/page/4/

Try in file - \wp-content\plugins\woocommerce-products-filter\js\front.js delete  this code - https://share.pluginus.net/image/i20210730122351.png

Hi.

 

I tried your suggestion, didn't work.

I'm not using AJAX in the shop page. The"Try to ajaxify the shop" setting is set to"No". So, when clicking on a filter or a page number, the whole page reloads.

I don't know if this is relevant to my issue or not. Maybe I should have said that in the beginning. Sorry for that...

Hello

I'm not using AJAX in the shop page. - I know it. In ajax mode, pagination looks different

I tried your suggestion, didn't work. - Please  check option - https://share.pluginus.net/image/i20210802115019.png - clear  all  cache  and  do a test

With that option set to"No" it does work.

 

The JS code I just changed, will it also be changed in future releases of the plugin, or do I need to re-change it everytime I update the plugin?

Or is that code not relevant to my issue anymore, and I should put it as it was before?

 

Thanks!

Hello

 will it also be changed in future releases of the plugin -  I passed  it to the developers. I think this will be fixed in the next version.