Hey, I’m building watches store using Woocommerce and bricks, in the shop page there’s a products query loop and a sorting drop-down. I’ve enabled infinite scrolling in the query, when choosing for example to sort the price from lowest to highest it works fine for the already loaded products but when scrolling down and more products loaded, sorting doesn’t work it only works for first loaded products.
Hi Ahmad,
Thanks for your report!
As far as I can see, you’re using the “products order by” element, which does not use Ajax. Accordingly, it no longer works as desired after the infinite scroll has been triggered.
You should use the new “Filter Select” element instead - then it should work
AJAX should have been added to the default sorting element instead. Unfortunately, I see this quite often as more effort for us users. Now we have to piece it together ourselves, and then the next problem arises: the TRANSLATION. Now we have to go the extra mile again because we need to translate this even though the WC language pack has these translations. With an added AJAX to the basic element one would just to need an update and go on with life…
I completely agree.
@timmse Is there any plans to include AJAX support with the native product sorting element?
Why would you need that, if you have Filter - Select now, where you can target your custom query loop?
What feature is missing for you there?
Matej
Sorry its not that it is entirely required, its just that it makes the process simpler. You want to enable ajax pagination and you have used the Woo product sorting element it then just works without the need to build a filter.
Or create better docs that explain the need for filters to support ajax elements and that the native woo sorting does not support ajax?
Ah, I understand. Well, you can publish it on idea board. I guess that’s the way to go
Matej
Ok thank, Can i use _price instead of _regular_price to ensure sales and regular prices are sorted accordingly?