Home › Forums › WoodMart support forum › Problem with filters
Problem with filters
- This topic has 14 replies, 2 voices, and was last updated 1 month, 1 week ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
November 26, 2024 at 6:41 pm #616214
szymon-0481ParticipantHello,
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?November 27, 2024 at 2:16 pm #616574
Aizaz Imtiaz AwanKeymasterHello,
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.
November 27, 2024 at 5:10 pm #616711
szymon-0481ParticipantI 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!November 27, 2024 at 5:38 pm #616730
szymon-0481ParticipantBy 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).November 28, 2024 at 2:48 pm #617140
Aizaz Imtiaz AwanKeymasterHello,
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
November 28, 2024 at 3:56 pm #617191
szymon-0481ParticipantOk – Sent
November 29, 2024 at 5:09 pm #617755
Aizaz Imtiaz AwanKeymasterHello,
Everything is working fine. Please see the video from the link below:
https://streamable.com/2eo62pThe 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.
November 29, 2024 at 7:51 pm #617836
szymon-0481ParticipantYes, 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.December 2, 2024 at 11:35 am #618327
Aizaz Imtiaz AwanKeymasterHello,
Please navigate to Woodamrt >> Patcher >> Apply the Patch
#618285
and then check the site after removing the browser cache.Best Regards.
December 2, 2024 at 10:57 pm #618721
szymon-0481ParticipantHello,
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.December 3, 2024 at 4:05 pm #618995
Aizaz Imtiaz AwanKeymasterHello,
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.
December 3, 2024 at 7:41 pm #619073
szymon-0481ParticipantHello,
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!December 4, 2024 at 5:53 pm #619404
Aizaz Imtiaz AwanKeymasterHello,
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.
December 6, 2024 at 5:01 pm #620221
szymon-0481ParticipantHello,
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.December 7, 2024 at 10:20 am #620376
Aizaz Imtiaz AwanKeymasterMost 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. -
AuthorPosts
Tagged: filters
The topic ‘Problem with filters’ is closed to new replies.
- You must be logged in to create new topics. Login / Register