Home › Forums › WoodMart support forum › How do I add a filter by AJAX category?
How do I add a filter by AJAX category?
- This topic has 10 replies, 2 voices, and was last updated 3 years, 1 month ago by Elise Noromit.
-
AuthorPosts
-
October 30, 2021 at 8:33 pm #328708
natadoshojanParticipantHello team.
I will turn to you again with a question. I can’t figure out how to display the AJAX-enabled product filter widget by category. I want to do it the way it is presented in one of your demos and I see that on the demo page the widget design differs from the standard Woocomerce category widget. Also, the standard Woocomerce category filtering widget does not support AJAX, but refreshes the entire page when switching.
For example, the price filter works as it should, but I can’t do it with categories either.
I want to do the same as on this demo page:https://woodmart.xtemos.com/product-category/furniture/?demo=
I looked through the documentation, I just can’t find about this moment.
Below I attach a link to what the store page looks like at the moment.
October 31, 2021 at 2:33 pm #328756
Elise NoromitMemberHello,
As soon as you add WoodMart filters you will see the option to set the category where this filter should appear: https://xtemos.com/docs/woodmart/widgets/
This option is provided only in WoodMart attribute filter widgets.
If you have any questions please feel free to contact us.
Best Regards
November 1, 2021 at 9:55 am #328879
natadoshojanParticipantI asked about this at all. I don’t understand how I can add a filter by category at all. That is, I need to add filtering of products by category on the store page with AJAX loading. The standard Woocomerce widget doesn’t work like that. In the demo at the link I gave, I see that a non-standard Woocomerce widget is used for categories. And I can’t find how I can connect the same widget for filtering by categories.
November 1, 2021 at 11:05 am #328893
natadoshojanParticipantI’m talking about how this is done in this demo:
https://woodmart.xtemos.com/shop/
Which is called AJAX Store
And I want to make the same filtering widgets for myself, including a filtering widget for product categories with AJAX. But the standard Woocomerce filter by category widget doesn’t work and doesn’t look the same.
Sorry, maybe I am not very clear about it, because English is not my native language
November 1, 2021 at 4:29 pm #328981
Elise NoromitMemberHello,
Please install the free Classic Widgets plugin.
You will easily find all WoodMart widgets. Add WOODMART WooCommerce Layered Nav then open the option, you will find the option to choose the category where this filter would appear, then add one more WOODMART WooCommerce Layered Nav and configure for another category.
You need to enable AJAX shop in the Theme Settings > Product Archives.
If you have any questions please feel free to contact us.
Best Regards
November 1, 2021 at 9:36 pm #329023
natadoshojanParticipantNo, the WOODMART WooCommerce Layered Nav filter widget displays filtering by attributes. I want to filter by product categories that are derived from the ‘categories’ taxonomy, not the ‘attributes’ taxonomy. Let’s say I have a site with personal computers, laptops and smartphones, I create categories ‘personal computer’, ‘laptop’ and ‘smartphone’. These are the categories I need to display with the filtering widget so that the user at the front can choose from the necessary categories and filter by them.
I currently have a basic category filtering widget from Woocomerce, but it does not support AJAX and is visually not very good, not like the Woodmart category filter with AJAX
I understand how to use WOODMART WooCommerce Layered Nav, but it displays filtering by attributes, but I need it by product categories. Or do I need to re-create all categories as attributes, set all products in the database with a new category value as an attribute, and then display product categories via WOODMART WooCommerce Layered Nav?
I am attaching a screenshot with the widget on the demo that I need
Attachments:
You must be logged in to view attached files.November 1, 2021 at 11:44 pm #329060
Elise NoromitMemberHello,
Please deactivate all the plugins except these ones:
Slider Revolution
WPBakery Page Builder or Elementor
Woodmart Core
Contact Form 7
MailChimp for WordPress
WooCommerce
Safe SVGIf the problem has gone, activate the plugins one by one, checking the issue to detect which one causes the problem.
In case, the problem remains, even after all the plugins are deactivated, provide your site admin access (insert the site credentials into the Private content block under the message area) and confirm the permission for plugins deactivation, switching to the parent or default theme. As soon as we complete the testing we will enable all back, however, the site would be without plugins for 15-20 min. You would better make the full backup of your site.
Best Regards
November 2, 2021 at 7:33 pm #329271
natadoshojanParticipantNo, I have no problem. I just don’t understand how I should use this feature. So I tried to clarify with you how to do this. But now I already realized that for this I need to re-create all categories in the attributes, and then use WOODMART WooCommerce Layered Nav. A bit strange solution, why you can’t use the basic Woocomerce taxonomy and work with the category taxonomy. This is very inconvenient for already running sites, because have to do all the work again
Ok, the question closed
November 3, 2021 at 9:56 am #329355
Elise NoromitMemberHello,
Please, provide your site admin access (insert the site credentials into the Private content block under the message area).
Best Regards
November 4, 2021 at 4:35 pm #329666
natadoshojanParticipantNo thanks, I’ve already figured it out. I realized that WOODMART WooCommerce Layered Nav infers categories from an attribute taxonomy, not a category taxonomy. I realized that for ajax filtering, you need to redo the content and add categories to the attributes
The question can be closed
November 4, 2021 at 6:15 pm #329676
Elise NoromitMemberIf you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
The topic ‘How do I add a filter by AJAX category?’ is closed to new replies.
- You must be logged in to create new topics. Login / Register