Table of Contents

Class GroupInfoViewModelExtensions

Namespace
Dynamicweb.Ecommerce.ProductCatalog
Assembly
Dynamicweb.Ecommerce.dll
public static class GroupInfoViewModelExtensions
Inheritance
GroupInfoViewModelExtensions
Inherited Members

Methods

GetGroup(GroupInfoViewModel)

public static ProductGroupViewModel GetGroup(this GroupInfoViewModel groupInfo)

Parameters

groupInfo GroupInfoViewModel

Returns

ProductGroupViewModel

Gets the primary link to a given group and that groups primary page id if that is specified - otherwise the specified page id.

public static string GetGroupLink(this GroupInfoViewModel group, int pageId, bool usePrimaryGroupPageId = true)

Parameters

group GroupInfoViewModel

The group to create the link for

pageId int

The pageid that should be used. If a pageid has been specified on the primary group in this shop that the product belongs to, that id will be used instead of the passed pageid.

usePrimaryGroupPageId bool

Returns

string

SimplePath(IEnumerable<GroupInfoViewModel>)

public static string SimplePath(this IEnumerable<GroupInfoViewModel> groupInfos)

Parameters

groupInfos IEnumerable<GroupInfoViewModel>

Returns

string
To top