Filter product widget and ShopByFilterGroupViewModel

Posted by Community Admin on 05-Aug-2018 11:32

Filter product widget and ShopByFilterGroupViewModel

All Replies

Posted by Community Admin on 25-Feb-2013 00:00

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

Posted by Community Admin on 25-Feb-2013 00:00

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

  1. ByProductTypeFilterTitle
  2. ByPriceFilterTitle
  3. ByDepartmentFilterTitle
  4. ByTagFilterTitle
  5. ByClassificationFilterTitle

Let us know if you have any questions.

Kind regards,
Venkata Koppaka
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed