• Resolved dnp1726

    (@dnp1726)


    the title says it all, im using the free version of the filters on a divi woocommerce store, the categories, range sliders and meta field filters all work splendidly, but the string search/product search filter is refusing to work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author annastaa

    (@annastaa)

    Hello Dnp1726,

    Thank you for sharing your concern! Can you please share the link to your site for us to get a better understanding of what may be the matter?

    Thread Starter dnp1726

    (@dnp1726)

    thank you for the reply, here is the site:
    https://adairco.nl/winkel/

    Plugin Author annastaa

    (@annastaa)

    Hello again Dnp1726,

    Please check the custom / 3d party code of your site for any functions that may wipe out/ reset the post__in clause of the main WooCommerce query!

    It’s almost definitely the cause of the problem, because other filters that depend on post__in do not work either, whereas the product counts and the filters’ dedicated AJAX mode that use standalone queries apply string search clauses without issues. Unfortunately, the simple switch to the dedicated AJAX mode will not eliminate the problem, since it will still be visible on first page loads and reloads.

    Thread Starter dnp1726

    (@dnp1726)

    hello,

    i can’t find anything in the functions that reset the query.

    Plugin Author annastaa

    (@annastaa)

    Dnp1726,

    You have to search for any WordPress or WooCommerce hooks (filters/actions) that alter the main query, or directly the post__in (pre_get_posts, loop_shop_post_in etc). If you keep all your custom code in a child theme, you can temporarily activate the parent theme to see if it’s something in the custom code that causes the issue.

    Theoretically, it could also be the parent theme or some 3d party plugin. Divi is not a free theme so I can’t test it, but it’s highly unlikely a theme would reset or not take into account the important WordPress hooks. If you like, you can perform the following debug procedure to make sure that it’s not the theme or a 3d party plugin:

    • Deactivate all the 3d party plugins apart from the WooCommerce and annasta Filters. If the problem persists, then it is caused by the Divi theme (or some of its settings). You can temporarily switch to Storefront, the native WooCommerce theme, to confirm this.
    • If the string search problem gets resolved after the 3d party plugins deactivation, start re-activating plugins one by one, testing each time till you find the one that triggers the issue.

    If the issue is caused by the Divi theme, you are welcome to contact us via our contact form to for us to join you in your quest for the solution.

    Plugin Author annastaa

    (@annastaa)

    Hello Dnp1726,

    Let me close this inactive thread in hope that your issue has been resolved by now. Please don’t hesitate to open another topic if you have any further questions about the work of our WooCommerce filters.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘string search issue’ is closed to new replies.