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 All filter works except Taxonomy: Product Category

Viewing 8 posts - 1 through 8 (of 8 total)
  • Garth
    #178855

    Hi there,

    Could you please help with an issue here where the filter works for everything else but the product category?

    The Product category count is there and shows the number of products in that category but no product is looped out.

    Example here http://novii.wpengine.com/products/

    Trevor Moderator
    #178946
    This reply has been marked as private.
    Garth
    #179067
    This reply has been marked as private.
    Trevor Moderator
    #179131
    This reply has been marked as private.
    Garth
    #179381

    Hi Trevor,

    Thanks for that, I can see the filter working.
    On filter, the markup changes on the filters – why is that?
    Is there any way to keep them the same?

    Before Select:
    Before select

    After Select:
    After select

    Trevor Moderator
    #179416

    I can see that you have some javascript changing the filters when the document loads. You need to trigger the same code when Ajax is used, by adding javascript like this to the page:

    <script>(function ( $ ) {
      "use strict";
      $(document).on("sf:ajaxfinish", ".searchandfilter", function(){
        console.log("ajax complete");
    
    // call your function here
    
      });
    }(jQuery));</script>
    Garth
    #179427

    I’ve tested the filter again without any script and it still does the same.
    The issue is that the pre-search filter HTML markup is different to the after-search.
    Is there a file I can edit to change the markup after-search?

    Before search:

    After search:

    Trevor Moderator
    #179429

    I have looked at the markup. The BEFORE markup is not standard for our plugin, but the AFTER is. This suggests than one of three things is changing the BEFORE markup:

    1. Your theme
    2. Another plugin
    3. Custom javascript

    Our plugin can optionally also use Select2. For each control, you would have to enable the Combobox option. But it might look different.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.