Support Forums

Hey there, it looks like you've been redirected from designsandcode.com - as you can see we have a new home - read more

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro ajax container and products count

Viewing 10 posts - 11 through 20 (of 122 total)
  • Ross Moderator
    #111377
    This reply has been marked as private.
    Veronika Palkova
    #111965

    Hi,
    any news in this ticket ?

    Regards,

    Ross Moderator
    #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-js

    I hope that makes sense.

    Best

    Veronika Palkova
    #112214

    Great !
    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
    #112469

    Hey Veronika

    Picking up again shortly to look at those issues

    Best

    Ross Moderator
    #112698
    This reply has been marked as private.
    Veronika Palkova
    #113560

    Hi,
    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 products

    Vyrobca filter UI – “Taxonomy filter: pa_vyrobca” :
    When I select vyrobca=Freycoo , it shows me all products / all variants

    Velkost filter UI – “Taxonomy filter: pa_velkost” :
    Taxonomy filter (pa_velkost) shows no attributes in drop down menu

    It 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,

    Ross Moderator
    #114350
    This reply has been marked as private.
    Veronika Palkova
    #114706

    I 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).

    Veronika Palkova
    #114746

    I’ve also disabled nearly all plugins (except of woocommerce and SF Pro).

Viewing 10 posts - 11 through 20 (of 122 total)

The topic ‘ajax container and products count’ is closed to new replies.