- Moderator
- 386
Hi Hristian,
Thanks for your reply. My mistake, I placed it in the wrong forum. I'm talking about Ajax Filters plugin.
What I mean is following: I have a few products, for instance sweater 1, sweater 2 and sweater 3
I have for instance 2 specifications:
style (men, women, kids)
color (red, white, blue)
Suppose I have the categories:
Home - teamwear - sweaters
Home - women - sweaters
In the first category I want both filters (style and color) to be visible
In the second category I do not need the filter style, (since it's a category for women), so I only want to filter on colors there.
So basically what I want is a setting to disable specific filters per category. Hope it's more clear so, if not please let me know.
Thanks for your reply. My mistake, I placed it in the wrong forum. I'm talking about Ajax Filters plugin.
What I mean is following: I have a few products, for instance sweater 1, sweater 2 and sweater 3
I have for instance 2 specifications:
style (men, women, kids)
color (red, white, blue)
Suppose I have the categories:
Home - teamwear - sweaters
Home - women - sweaters
In the first category I want both filters (style and color) to be visible
In the second category I do not need the filter style, (since it's a category for women), so I only want to filter on colors there.
So basically what I want is a setting to disable specific filters per category. Hope it's more clear so, if not please let me know.
Hi Hanz,
There is no built-in feature for excluding certain specifications or product attributes for a given category. However, you can achieve this by slightly modifying the code. Find and open \Plugins\SevenSpikes.Nop.Plugins.AjaxFilters\Views\SpecificationFilter7Spikes\SpecificationFilter.cshtml and after this:
@foreach (SpecificationFilterGroup specificationFilterGroup in Model.SpecificationFilterGroups)
{
place this:
if (Model.CategoryId == 1 && specificationFilterGroup.Name == "Style")
{
continue;
}
where "1" is the categoryId that you don't want to have the "Style" specification.
Hope this helps!
Regards,
Hristian Dimov
Nop-Templates.com
Hristian Dimov
Nop-Templates.com