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.
-
Anonymous(Private) May 18, 2017 at 8:45 pm #109839
Could you please check my site (https://bosaacik.sk/eshop) ? I would like to load filter result by AJAX, but it not works. I think that problem should be in css ajax container. Now I’ve set it to “.products”, but it not works. How should I set up AJAX container ? Or is it another issue ?
Another problem I’ve had is that all items in taxonomy filter (i.e. Výrobca) shows zero count.
For example:
I have products where vyrobca=Froddo, filter shows zero count in dropdown input, but actually there is some products. You can see it in: https://bosaacik.sk/vyrobca/froddoThank you
Anonymous(Private) May 22, 2017 at 3:43 pm #110390“Vlasnosti” is slovak translation of “Attributes”
“Varianty” i slovak translation of “Variants”If wp-admin translation is problem, we/you can switch it to English.
I have csv importer for my products, and via this importer I’ve set product attributes and variants. Something like that (just relevant columns):Trevor(Private) May 23, 2017 at 6:46 am #110521OK
I need to take this in steps.
So, for now I have disabled
Enable filtering on Taxonomy Archives
only for testing purposes. When all is working, this can be switched back on.Ajax Container
I have now set to.page-content
because this seems to be outside the loop.I do a test search for
Length
at12,4
and I expect to see 6 results. This is the URL it gives:https://bosaacik.sk/eshop?_sfm__price=24+49&_sfm__length=12%2C5
No results. Notice it has included price also by adding
_sfm__price=24+49
to the URL?If I edit the URL manually to this (which is what I wanted):
https://bosaacik.sk/eshop?_sfm__length=12%2C5
YES!! I get 6 results.
So, there is a problem with the price slider settings or data. Looking at the 6 results, I can see prices.
I see you use
,
for decimals point, but in the price field setting, this has not been set in theDecimal Seperator
option. So I will change that from.
to,
Now the https://bosaacik.sk/eshop?_sfm__price=24+49&_sfm__length=12%2C5 URL gives 4 results, not six?
I see that the range is 24-49, but the lowest value in this search is
23,90
. I do not know why it has been rounded up like this. I also notice there appears to be a bug with the start value.I need to stop here and talk to the developer.
Anonymous(Private) May 23, 2017 at 10:39 am #110630Thank you for your investigation.
I’ve also noticed that price slider round min and max value. If it is bug I can live with that to time, when it will be fixed (I can change type of price filter to other input type).
I do a test search for Length at 12,4 and I expect to see 6 results. This is the URL it gives:
https://bosaacik.sk/eshop?_sfm__price=24+49&_sfm__length=12%2C5
No results. Notice it has included price also by adding _sfm__price=24+49 to the URL?
If I edit the URL manually to this (which is what I wanted):
https://bosaacik.sk/eshop?_sfm__length=12%2C5
YES!! I get 6 results.I suppose that, you get “no results” in first query because of wrong AJAX loading (bad container?) nor because of price filter. When you try to manually make a request with price filter:
https://bosaacik.sk/eshop?_sfm__price=24+49&_sfm__length=12%2C5
You will get a good result.I can also live withou AJAX loading to time when we found a good solution.
My main interest at this time is a good results of combination of price,taxonomy,category,tags and meta filters.
Trevor(Private) May 23, 2017 at 11:11 am #110644From my testing, and I have reported it also, if the lower From price is the same as default, you get no results. Try using the slider to increase the value, I think it then works. Most odd. As I said, I have passed this to Ross, the developer, for him to look at.
-
AuthorPosts