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

    (@tijmensmit)

    If I search for ‘zakopane’ and try the different filters, then it does return results?

    Which browser do you have the problem in?

    Thread Starter hellsinger

    (@hellsinger)

    If you search for “zakopane” it should display shops from category “Drogerie Natura”. Now setting the category filter don’t filter the results.

    You can see it clear when search for: “sokratesa”. There is a “Test” shop with “test” category.

    I have problems on all browsers.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    I see the problem now, the ‘filter’ param is for some reason not included in the ajax request.

    You didn’t modify the wpsl-gmap.min.js file? Did you update from an older version? If that’s the case, and you are using something like W3 Total Cache / Cloudlflare, then maybe it’s still serving the old wpsl-gmap.min.js that doesn’t include the filter param in the ajax params.

    Thread Starter hellsinger

    (@hellsinger)

    It is fresh install and I didn’t make any modification.

    I’am using Wordfenc with cashing. I try to disable it but didn’t help…

    I can make you admin for some time if you want.

    Plugin Author Tijmen Smit

    (@tijmensmit)

    So I found the problem. There is a JS script ( probably loaded by your theme ) on your site that also tries to style the dropdowns.

    I suspect it’s this script https://github.com/select2, but it’s probably included in a JS file instead of being loaded separately. I don’t see it anywhere in the HTML output.

    The easiest way to find out where it comes from is by searching through your theme files for either ‘select2-container’ or ‘select2-offscreen’ both are CSS classes placed on the dropdown from the store locator, but they don’t belong there.

    How it works is that the wpsl-gmap.js looks for a div with the ‘wpsl-dropdown’ class inside the div wrapped around the dropdown. Usually there is only one, but now because of the other JS script there are 2 which breaks the category filter.

    Thread Starter hellsinger

    (@hellsinger)

    THX! It solves the problem. It is connected with Virtue theme by Kadence – you can turn off Select2 in theme settings and everything starts to works fine ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Category filter not working’ is closed to new replies.