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 pleaseIf 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.
Quote from maynprotec on July 23, 2021, 00:39I'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.
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.
Quote from Pablo Borysenco on July 23, 2021, 12:59Hello
Please drop me exact link to the issue
Hello
Please drop me exact link to the issue
Quote from maynprotec on July 28, 2021, 16:55Hi.
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.
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.
Quote from Pablo Borysenco on July 29, 2021, 12:32Hello
What plugin version number are you using?
Yes, I need to see your site
Hello
What plugin version number are you using?
Yes, I need to see your site
Quote from maynprotec on July 29, 2021, 12:49The 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.
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.
Quote from Pablo Borysenco on July 30, 2021, 11:24Hello
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
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
Quote from maynprotec on July 30, 2021, 16:14Hi.
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...
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...
Quote from Pablo Borysenco on August 2, 2021, 10:52Hello
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
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
Quote from maynprotec on August 2, 2021, 11:15With 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!
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!
Quote from Pablo Borysenco on August 2, 2021, 12:56Hello
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.
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.