Home Forums WoodMart support forum Problem with filters

Problem with filters

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #616214

    szymon-0481
    Participant

    Hello,
    I’ve discovered another problem with the filters.
    Currently, I’ve got three filters in my shop: “category”, “price (range)” and “brand”.
    When I choose a given category from the first filter (dropdown), then choose the price from/to, and then change the first category to another one that hasn’t got any items in that price range, what happens is the price range filter (that is still active – which is visible in the URL) disappears, leaving me with “nothing found” in the shop.
    How can I fix that? For example (and I guess the best solution) would be to reset other filters (clear the URL) when changing the category filter input. I’m using the AJAX method.
    Any ideas?

    #616574

    Hello,

    May be there is an issue with the 3rd party plugins. Please deactivate all the 3rd party plugins and activate only theme-required plugins on the site and then check the issue. I am sure your issue will be solved. Then Activate the 3rd party plugins one by one and check which plugin is creating the issue for you.

    Otherwise, if the issue still exists then keep the 3rd party plugins deactivated and share the WP admin login details of your site so I will check and give you a possible solution.

    Best Regards.

    #616711

    szymon-0481
    Participant

    I deactivated all the plugins besides WooCommerce, Woodmart, and Elementor.
    The issue still persists.
    I’m sending you a link to a screen shared video – please look into that.
    This is important for us (and any shop I guess) as it misleads the customers, showing that there are no products in a given category. 🙁
    Greetings!

    #616730

    szymon-0481
    Participant

    By the way:
    I’ve checked the video from the link I’ve sent you and noticed that you cannot see the URL in this video.
    As mentioned in the first message, the filter goes missing from the front-end, yet it stays in the URL.
    For example: /?min_price=3193&max_price=16506
    Later in the video I’m deleting this query from the URL manually and the products re-appear (so does the filter – then empty, of course).

    #617140

    Hello,

    Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.

    Best Regards

    #617191

    szymon-0481
    Participant

    Ok – Sent

    #617755

    Hello,

    Everything is working fine. Please see the video from the link below:
    https://streamable.com/2eo62p

    The products are not showing because that category has not products under the selected price range that is why those categories are showing empty under that selected price range. This is the normal behavior. You can check this with the default WordPress theme and Woocommerce Storefront theme just to check whether the issue is with our theme or not.

    Best Regards.

    #617836

    szymon-0481
    Participant

    Yes, I know there are no products of the selected price in the given category.
    The main problem is that the filter disappears from the frontend and people get confused because it is still applied…
    It should stay visible to show people that the price filter is still being used.

    Attachments:
    You must be logged in to view attached files.
    #618327

    Hello,

    Please navigate to Woodamrt >> Patcher >> Apply the Patch #618285 and then check the site after removing the browser cache.

    Best Regards.

    #618721

    szymon-0481
    Participant

    Hello,
    I have installed and tested the fix, and it works as intended. The price filter remains visible even when there are no items within the selected price range in the given category.
    However, the fix currently works only for the price range filter.
    Is it possible to make this solution more versatile so that it applies to all filters?
    For instance, in our shop, we also have a “Marka” (Brand) filter. As of now, the Marka (Brand) filter disappears in the same way the price filter used to, when there are no items of that brand in the given category. Could this fix be extended to work with it as well?
    If so, the solution would be perfect.
    Thank you for your assistance.

    #618995

    Hello,

    Unfortunately, this is the default behavior of the layered-nav widget from WooCommerce. On product category pages, if there are no products associated with the brands or attributes, the widget does not display them.
    You can verify this yourself by adding the default widget Filter Products by Attribute and observing the same behavior.

    Best Regards.

    #619073

    szymon-0481
    Participant

    Hello,
    I understand that this issue is related to a defect in WooCommerce. However, I wouldn’t describe this as “normal behavior”—it is clearly a bug that needs to be addressed. As I mentioned earlier, this issue can mislead customers, which is a critical problem for any online shop.
    One of the key reasons we chose Woodmart was its custom filter feature, and we’ve purchased 12 licenses for our projects. This functionality is vital for our stores, so it’s concerning that this bug hasn’t been fully addressed before.
    I appreciate the patch you provided (#618285), which resolved the issue for the price filter. However, it’s crucial for this solution to cover all filters, such as the “Marka” (Brand) filter, as well. Leaving this unresolved significantly impacts the user experience, which I believe aligns with your mission to deliver a bug-free, top-tier product, which is Woodmart (and we enjoy it A LOT).
    Could you please assist us in extending the fix to all filters? Alternatively, if possible, please share the specific code used in the patch so we can apply it to other filters across our projects.
    We -really- NEED it fixed.
    Thank you for your support!

    #619404

    Hello,

    We understand your problem, but unfortunately in this particular situation we cannot change its anything because this is a WooCommerce functionality that we cannot influence. Here is a link to the WooCommerce plugin repository string where this situation arose https://github.com/woocommerce/woocommerce/blob/f3bb69601be132a1aca72d773e646ff3a5468ae0/plugins/woocommerce/includes/widgets/class-wc-widget-layered-nav.php#L193

    Since this condition is located in the WooCommerce plugin itself, we cannot remove or modify it using only a WordPress theme

    Best Regards.

    #620221

    szymon-0481
    Participant

    Hello,
    Ok, Now I get it.
    I didn’t understand at first that it is not something that you can fix in the theme.
    My bad.
    I’ve fixed the problem by adding “active filters” component, so now clients see what filters are active.
    Thank you,
    Please close this topic.

    #620376

    Most Welcome!!!.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Tagged: 

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

The topic ‘Problem with filters’ is closed to new replies.