Forums › Forums › Search & Filter Pro › ajax container and products count
- This topic has 121 replies, 3 voices, and was last updated 6 years, 7 months ago by Ross.
-
Ross Moderator(Private) November 20, 2017 at 3:09 pm #142851
Haha, pls update, I’m working again locally on the issue 🙂 Just pls allow me to keep access as time to time I will test things on there!
Thanks
Ross Moderator(Private) November 28, 2017 at 6:02 pm #144344This reply has been marked as private.Anonymous(Private) January 9, 2018 at 8:55 am #151345Hello,
Firstly, I wish you Happy New Year and all the best in this year.
Secondly, I’m sorry for my delay.I’ve tested all issues from previous posts and it looks, that 1-6 is OK.
Really thank you for fix:5) after product variant is sold out, S&F cache need to be rebuild
.So it looks, that only
7) don’t know why, but AJAX loading stop works correctly – when I filter products, no products are shown – they are loaded but not visible. I’ve made no change which should affected this feature.
has remained.Also I will need to think up how to deal with 6).
How can I move S&F from bosaacik.sk (testing site), to my production site ? Will be any new update in near future ?
Regards,
Ross Moderator(Private) January 31, 2018 at 2:38 pm #156374Hi again
So I tried to solve this issue without having to revert to you but it looks like I may need your help.
Essentially we need to find out the Javascript that is being used to give your products the masonry / grid type layout.
What happens is, when you search with S&F, the new results are loaded in with Ajax, but, they are not visible (you can check the html markup).
What we need to do is, after S&F results are loaded (we have a JS event for this), then we need to run your themes javascript (that handles the display of hte shop).
If you could contact your theme author to find out, even what library is being used to do this layout then we can do the rest.
Although, I think your theme author could quite easily give us the exact javascript we need to “re-layout” the shop.
Then we would add this to your child theme:
//detects when the ajax request has finished and the content has been updated // - add scripts that apply to your results here $(document).on("sf:ajaxfinish", ".searchandfilter", function(){ console.log("ajax complete"); //so add the script from your theme, to do the layout of your products again });
Thanks
Anonymous(Private) February 4, 2018 at 9:12 pm #157236Hi,
OK, I’ve fixed it. I’ve remembered, that I added this kind of JS sooner. It looks, that it was removed after any of update.
Now AJAX works properly.Is version of S&F installed on bosaacik.sk official one ? How can I migrate it to my production site (bosacik.sk) ? FTP copy ?
But again, I’ve found difference between count showed in filter and final count of products.
For example:
– typ=gumaky (filter shows 8 products, but final filtered products are 7). Archive page (https://bosaacik.sk/eshop/typ/gumaky) shows 8 products.
– pohlavie=chlapec (filter shows 139, but final filtered products are 127). Archive page (https://bosaacik.sk/eshop/pohlavie/chlapec) shows 139 products.Ross Moderator(Private) February 5, 2018 at 3:15 pm #157450Hi again
So lets update the plugin first.
My recommended course of action is to update S&F via wp-admin plugins page (there is official release now, the one you have is beta),
Or, via FTP (you can download a new copy from your account) – first disable S&F, replace the files, then enable S&F again.
After this, I would recommend to rebuild the cache (after this update, you won’t need to rebuild cache when upgrading S&F in the future, its just because we did so much work with WooCommerce).Once done, let me know, and if the above is still an issue, I will look again – but actually I think I already have the answer / explanation 🙂
Thanks
-
AuthorPosts