0

I have some categories and subcategories for each of them. And finally, some products under these subcategories.

What I want is to choose some attributes of these categories and subcategories products to show in products page as a search filter.

For example, I have these:

Categories:

computers:
  laptops
    weight
    color
  pc
    motherboard
    casing-box

So, for example, I want the color, weight, and motherboard as filters. In this case, if a user selects Computers category, he can see the motherboard, color, and weight as filters available in the sidebar, but if he selects laptops, he can only see the weight and the color as filter in the sidebar.

How can I do this in WordPress?

Is it possible to do this in Advanced AJAX Product Filters plugin? If not is there any way to do this with any plugin or any code snippets?

0

It's possible to do it with Advanced AJAX Product Filters plugin. It allows you to use attributes in the filter. Follow these steps:

  1. Install and activate the plugin.
  2. In the right sidebar, click on Widgets.
  3. Under Filter By option, select Attribute. Under Atrribute option, which is located beside Filter By, choose the attribute of your desired category / subcategory.
  4. Finally, click on the Save button.
  • thanks, that was the trick but the new version is a little bit different though. – moh Jan 28 at 7:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.