- Moderator
- 1044
Hi
I am Still Waiting for reply for my last post and i also tell me that how to show a filtered attribute with (Remove) link on page. it's possible or not?
Please Reply
Regards,
Pvinit
I am Still Waiting for reply for my last post and i also tell me that how to show a filtered attribute with (Remove) link on page. it's possible or not?
Please Reply
Regards,
Pvinit
Hi,
in order to show a "Remove" link, you can achieve that but you should make customization to the views. Please have a look at the example below for an attribute, it will be the same for specifications and manufacturers filters.
Edit the AttributeFilter.cshtml view to add a <span> for the remove text:
<a class="@filterItemCssClass" data-option-ids="@productVariantAttributeIds" data-optionsGroupId="@String.Concat(attributeFilterGroup.Id, "-", attributeFilterItem.Name)">@attributeFilterItem.Name<span class="remove-text">Remove</span></a>
and add the following css to the AjaxFilters.css file:
.remove-text
{
float: right;
}
.filterItemUnselected .remove-text
{
display: none;
}
Hope that helps!