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) May 31, 2017 at 1:26 am #112193
Hi Veronika
Apologies for the delay, I’ve been looking into this.
I think I’ve figured the issue.
It seems that when your shop page is loaded, a script is called to show your products (that nice fade effect where the products appear 1 by 1), this means they are initially set to invisible by your theme, and made visible with your themes Javascript.
What happens when you do an ajax search with S&F is, the results do get loaded in but they are not visible, as initially set by your theme.
If you use your browsers inspector, to look at the HTML you will see the results there hidden.
What you need to do, is detect when an ajax request has finished, then run the scripts to show the item in your shop (I guess this could be some sort of masonry script?)
Fortunately, we have a javascript event for this (
sf:ajaxfinish
) – https://gist.github.com/rmorse/b157004c68870dbd9fb9#file-sf-pro-ajax-events-jsI hope that makes sense.
Best
Anonymous(Private) May 31, 2017 at 7:37 am #112214Great !
It makes sense. I’ve also noticed that products are loaded, but are hidden. As I wrote in one of my previous post, this issue, is not so critical for me. Results could be loaded without AJAX, at this time . So I will try to resolve this issue (maybe with theme support) later.I’ve turned AJAX off now.
My main interest at this time is a good results of combination of price,taxonomy,category,tags and meta filters.
Could we try to resolve this kind of issues ?
Best Regards,
Ross Moderator(Private) June 1, 2017 at 11:04 am #112469Hey Veronika
Picking up again shortly to look at those issues
Best
Anonymous(Private) June 6, 2017 at 12:17 pm #113560Hi,
Sorry for my late answer. I did’nt notice second forum page 🙂I deleted search-filter-pro from wp-content/plugins directory.
Then copy files from search-filter-pro-beta-2.3.5.zip to wpcontent/plugins directory.
And rebuild cache.But it looks, that problems still occurs:
Last filter UI – “Post Meta: _length” :
When I select size “13,5” (drop down menu shows me, that are 4 products), but after select it shows me 7 products. In result are also out of stock productsVyrobca filter UI – “Taxonomy filter: pa_vyrobca” :
When I select vyrobca=Freycoo , it shows me all products / all variantsVelkost filter UI – “Taxonomy filter: pa_velkost” :
Taxonomy filter (pa_velkost) shows no attributes in drop down menuIt looks that price filter works fine.
Product in my eshop has to variants “Velkost”, “Dlzka”. But in the end, it will be one variant only (if the meta filter will works correctly).
Another question. Is it possible to set “Search” Form UI (text search) to searching only in products name ?
Best Regards,
Anonymous(Private) June 13, 2017 at 12:13 pm #114706I use “CSV Import” plugin to import woocommerce products.
I deleted all products and add some products manually, to avoid bad import with this plugin (I suppose, that also eliminate “corrupt database”).
I’ve added 2 variable products in 2 diferent categories.
Each product has 2 variants.
To avoid negative theme influence, I’ve change theme to “Twenty Sixteen”.Now, when I check categories in WP admin, I can see 1 product in category “cizmy” and 1 product in category “nohavice” (correct).
When I check archive page for category “nohavice” https://bosaacik.sk/kategoria-produktu/nohavice, I can see 1 product (correct).
When I check archive page for category “cizmy” https://bosaacik.sk/kategoria-produktu/cizmy, I can see 1 product (correct).
Eshop page (https://bosaacik.sk/eshop), shows 2 products (correct).
When I check category filter drop down menu, it shows 0 products in each category (bad).
When I choose “cizmy” from category filter (https://bosaacik.sk/eshop?_sfm__price=10+49&_sft_product_cat=cizmy), it shows me 0 products (bad).
When I choose “nohavice” from category filter (https://bosaacik.sk/eshop?_sfm__price=10+49&_sft_product_cat=nohavice), it shows me all products and all variants (bad).
When I manualy throw URL wo price filter: https://bosaacik.sk/eshop?_sft_product_cat=nohavice, it shows me 0 products (bad).
When I manualy throw URL wo price filter: https://bosaacik.sk/eshop?_sft_product_cat=cizmy, it shows me 0 products (bad). -
AuthorPosts