Okay
  Public Ticket #3138834
Crocoblock Compatibility - JetSmartfilters, Jetwoobuilder
Closed

Comments

  • Ján started the conversation

    Hi,

    we are using B2B Kings for new B2B website. We are trying to make JetSmartFilters + JetWooBuilder work. It seems indexer (jetsmartfilters) doesnt work with B2B Groups. 

    USE CASE:

    We have archive template via JetWoobuilder which contains JetSmartFilters widgets. These widgets use indexer to show/hide taxonomies/categories/attributes if other filters change. 

    So, if B2B Group 1 has access only to 1 category these filters should show only that category which this group has access. 

    PROBLEM: Now we have set up Product & Category Visibility Settings that way all categories are manully set up to give access. But still all archive pages show all possible filter options. See screenshots:

    B2B Group 1 - Only access to category Baby Livia - but still in filters are shown all other categories

    8519472570.png

    We tried:

    1. No parent category has access - only Baby Livia
    2. Reset Indexer
    3. All options in JetSmartFilter widgets

    It seems we need either/combination

    1. Custom Query Variable -> B2B_groups_XY
    2. Compatibility check
    3. Custom relation ?
    4. Query builder ?
    5. Any other options you can provide us ? 

    We tried all in our power but nothing seems to work. 


    Theme: Kava / Kava Child 

    Useful links: https://crocoblock.com/knowledge-base/articles/jetsmartfilters-how-to-set-indexer-option-for-filters/

  •  2,286
    WebWizards replied

    Hi Jan,

    Thank you for purchasing our plugin,


    So, if B2B Group 1 has access only to 1 category these filters should show only that category which this group has access. 

    Please try the following: Go to B2BKing -> Settings -> Other and enable the setting named 'Product Visibility Cache'. This helps set visibility at a deeper level and may be able to make it work there and show in filters,


    Let me know if that can help,


    Kind regards,

    Stefan


  •   Ján replied privately
  •  2,286
    WebWizards replied

    Hi Jan,

    I tried logging in now and enabling the Product Visibility Cache setting.


    This is what I see with this setting enabled:

    If I go to https://marketpro.sk/kategoria-produktu/nase-znacky/ , I will get a 404 error because this Parent Category is not set to visible:

    9880460695.png


    If I go to the Shop Page:

    https://marketpro.sk/shop/

    8601154564.png


    This seems correct and I see that Frigg is also enabled for the user AdminShop.



    Is that not working per your needs? Please let me know,

  • Ján replied

    Hi,

    how is that possible o.O I tried enabling is several times and it didnt work. Well i seems you are a wizard. For now it WORKS.

    Can u tell me how this cache works ? is it MEMCACHED ?

    Thank you.


  •  2,286
    WebWizards replied

    At some point while I was testing I also disabled and re-enabled the indexer - I don't know if that's related or not,


    What our 'product visibility cache' does is that it saves an array of visible product IDs (saves them as a transient), and it hides all other products via the 'pre_get_posts' hook. 'Pre_get_posts' is applied very very early in WP queries so it can usually also work with 3rd party plugins,