Filter product widget and ShopByFilterGroupViewModel
Hi team,
I see that the items that are rendered within the Filter product widget are based on the ShopByFilterGroupViewModel. Is there any way to have influence or manipulate the data inside that ViewModel?
I don't like the 'by ...' prefix for the Group Title of the filters. How can I get rid of them?
A quick and dirty solution would be this:
if
(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
var data = e.Item.DataItem
as
ShopByFilterGroupViewModel;
data.GroupTitle = data.GroupTitle.Substring(3);
But it isn't very nice. Can't I configure the behavior somewhere?
Kind regards,
Daniel
Hi Daniel,
Yes, each of the filter group titles are resources strings. You can change them in Administration -> Interface Labels & Messages.
Below are the resource keys you would need to change in CatalogResources
Let us know if you have any questions.
Kind regards,