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

Problem when activating AJAX

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.

Hi Pablo, I hope you are well.

I have detected the filter is not working properly when AJAX is activated on our site. You can check it through the following link:

PALAS - Landpadel

The filtering is not done correctly, when you try to advance to the next pages of results it does not show the right data, etc.

https://drive.google.com/file/d/1FXTlrGCyAAMuUB5hzCkxVeNXmEumn7zN/view?usp=sharing

The filter works correctly when Ajax is disabled or when the AJAX form repainting is set to YES (so it's needed to press the filter button to start filtering). The issue is that this way the filter is extremely slow, as well as the step to see the next page of results (more than 20 secs when all the parameters have been selected).

I have spend some hours checking all the possible setups

Now I have activated AJAX on Husky, so you can check what is happening. Please find also some links to the current configuration (turbo mode is not active)

  1. https://drive.google.com/file/d/1kwMCYZgvWO4863S9n9OaTeWGixsWTc30/view?usp=sharing
  2. https://drive.google.com/file/d/19vue6rP4e0MIUH8wjFxYJEmrD8Yh0H7P/view?usp=sharing
  3. https://drive.google.com/file/d/1_7MqJ0_j3CllLUnJK0Pp0mB6MWW_Kc-G/view?usp=sharing

This is essential for us because the filter is a key element on our site.

Thank you very much in advance for your support.

More info.

After filtering by a parameter not all the products are shown in the first page (please see the image below)

https://drive.google.com/file/d/1cg5ZGcJeSA_1E1wcLGpJwhywkGxOkbF-/view?usp=sharing

If I click over the link to go to the page 2 of results (https://landpadel.com/wp-admin/admin-ajax.php/page/2/) this is what happens:

https://drive.google.com/file/d/1FXTlrGCyAAMuUB5hzCkxVeNXmEumn7zN/view?usp=sharing

However, if after the first filtering I reload the page (https://landpadel.com/palas/?swoof=1&min_price=136&max_price=406&paged=1&really_curr_tax=41-product_cat)

The filtering and the rest of results pages work fine, but as soon as I filter by a new additional parameter in the filter the behaviour is the same as the beginning. That is, it does not work properly.

Thank you

 

 

Hello

Your current theme has its own ajax pagination functionality - please disable this

Check  option->Advanced->Options - https://share.pluginus.net/image/i20230407112319.png

Read this - https://products-filter.com/pagination-troubles-in-ajax-mode

Hi Pablo, thank you very much for your answer and support.

  • The working without ajax is correct but slow. We are still creating the site and we have only 200 products. The plan is to have between 2000 and 5000 when we will be in full operation. So please correct me if I'm wrong, but I'm afraid we need the filter working in ajax mode (turbo, etc.) in order to have a good response time.
  • I have no found a function to disable the Riode ajax pagination for the product category PALAS. There is a function like this: riode_pagination( '', '', '.main-content .products' ); Although I disabled it the working was not properly. If you can give me any pointers or support it would be greatly appreciated.

I have seen your performance demo with 10,000 products and that's why I think Husky is good filter for our project. Any advice to improve the performance on our site would be much appreciated.

Thank you

Hello

Please drop me  wp-admin access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png - I will check it

Unfortunately, not all themes are compatible with ajax filtering - https://share.pluginus.net/image/i20230410121532.png

Hi Pablo,

Done. Thank you very much

Hello

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

jQuery('body').on('click', '.woocommerce .pagination a.page-numbers', function () {

clear all cache  and do a test

Hello Pablo,

I have changed it. Right now it is like this:  jQuery('body').on('click', '.woocommerce .pagination a.page-numbers', function () {

but I think the working is the same.

This is the link https://landpadel.com/palas/

Thank you

Just another detail.

I also saw the parameter .woocommerce-pagination in the function woof_infinite ()

I did not change it there. Only in the line that you mentioned.

Thank you

Hello

ok! Please  drop me  FTP access - https://share.pluginus.net/image/i20230222134241.png ->https://share.pluginus.net/image/i20230222134615.png

Hello Pablo.

I have created a FTP access.

Thank you very much

Hello

Please  do a  test

Hi Pablo,

I'm afraid that it is not solved yet. It is happening the same.

Thank you very much for your support.

Hello

My  test - https://c2n.me/4ik322o

Hi Pablo,

I haver recorded a video also to show what we are detecting https://drive.google.com/file/d/1J55Gr168Kt9l1NzCGFvJDgDknN4pIAiK/view?usp=sharing

  • It always shows 10 products, although there are more to be shown. I also tried forcing it to show 12 in husky, but this way it always showed 12, even if it had to show less. I repeated products if necessary.
  • Double pagination appears
  • The filtering is not correct. Even if you move to other pages it always shows you the results of the first page.

Thank you for your support. Much appreciated.

Hello

Please  check  option - https://share.pluginus.net/image/i20230418114847.png

Please disable ajax pagination (theme settings). Better turn off any influence on pagination in your theme

Hi Pablo,

I hope you are well. Here we are again...

We did a theme customization by turning off the pagination. However, when activating all the filter parameters it takes a long time to move to another page.

Please see this video:
I also tested the turbo mode, the filtering works well. However, I did not see an improvement in the loading time when moving from one page to another when filtering has been done. So for the moment I leave it disabled, as it comes by default.
Any other idea?
On the other hand, we are also evaluating to change the template as the filtering is a key element in our project. It would be a shame because we have invested much time...
Our plan is to have between 3000 and 5000 products. Please could you recommend me any nice theme that works perfectly fine with your filter? Do you know any example of an active website with your filter and relevant amount of products?
Thank you

Hello

I see the problem, but as I wrote earlier, this is custom pagination. This is not standard pagination and I don't know why it works so slowly

just for test try to install Storefront  and  check  pagination

Hi Pablo,

we have been able to solve it with some customization, updating everything and deactivating plugins and other elements that are not necessary.

I have another question but is different topic, so I will open a new thread.

Thank you very much for your support

Hello

Ok!  Welcome;)