Close

Hide attribute groups

ifmobler
7 years ago
#12887 Quote
Avatar
  • 4
Hi
One of the best things in Pavillion theme is the ajax filter, but, I would like to have the abillity to hide an attribute group, is that possible?

If not, guess I need to add this feature.

I believe it's easy by adding a published variable to Model.
@foreach (AttributeFilterGroup attributeFilterGroup in Model.AttributeFilterGroups)
{
     if(attributeFilterGroup.AllowInFilter){...}
}
hristian.dimov
7 years ago
#12909 Quote
Avatar
  • Moderator
  • 386
ifmobler wrote:
Hi
One of the best things in Pavillion theme is the ajax filter, but, I would like to have the abillity to hide an attribute group, is that possible?

If not, guess I need to add this feature.

I believe it's easy by adding a published variable to Model.
@foreach (AttributeFilterGroup attributeFilterGroup in Model.AttributeFilterGroups)
{
  if(attributeFilterGroup.AllowInFilter){...}
}


Hi,

Sorry for the late reply!

There is no built-in feature that allows you to hide certain attribute groups. However, you can do this by adding some logic to the view like you already mentioned.

Hope this helps!
Regards,
Hristian Dimov
Nop-Templates.com