Class EntryExtensions
Inheritance
System.Object
EntryExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Catalog.Objects
Assembly: EPiServer.Business.Commerce.dll
Version: 10.8.0Syntax
public static class EntryExtensions
Methods
GetProductLink(Entry, String)
Gets product link URL based on selected language
Declaration
public static string GetProductLink(this Entry entry, string language)
Parameters
Type | Name | Description |
---|---|---|
Entry | entry | Current catalog entry |
System.String | language | Language selector |
Returns
Type | Description |
---|---|
System.String | Product link URL in string format |
GetProductLink(Entry, String, ReferenceConverter, UrlResolver)
Gets product link URL based on selected language
Declaration
public static string GetProductLink(this Entry entry, string language, ReferenceConverter referenceConverter, UrlResolver urlResolver)
Parameters
Type | Name | Description |
---|---|---|
Entry | entry | Current catalog entry |
System.String | language | Language selector |
ReferenceConverter | referenceConverter | The reference converter |
EPiServer.Web.Routing.UrlResolver | urlResolver | the url resolver |
Returns
Type | Description |
---|---|
System.String | Product link URL in string format |
IsAvailable(Entry)
Determines whether the specified catalog entry is available (is active, startdate and enddate are correct)
Declaration
public static bool IsAvailable(this Entry catalogEntry)
Parameters
Type | Name | Description |
---|---|---|
Entry | catalogEntry | The catalog entry. |
Returns
Type | Description |
---|---|
System.Boolean |
|