ECommerceHelper Class |
Namespace: CMS.Ecommerce
public static class ECommerceHelper
The ECommerceHelper type exposes the following members.
Name | Description | |
---|---|---|
CouponCodeComparer |
Gets the comparer for coupon codes. Provides case-insensitive ordinal string comparison.
|
Name | Description | |
---|---|---|
GetAllCouponCodesQuery |
Returns data query with all existing coupon codes from all existing discounts.
| |
GetFormattedPercentageValue |
Returns formatted value with removed trailing zero values and added trailing percentage character.
| |
GetLastUsedOrDefaultAddress |
Gets last used customer address if present or address with a default country defined in the 'CMSStoreDefaultCountryName' setting key.
| |
GetSiteID |
Returns 0 if specified site uses global objects based on the specified e-commerce setting, otherwise returns site ID of the specified site.
| |
IsUserAuthorizedForPermission(String, String, IUserInfo) |
Checks the specified ecommerce permission for the given user.
| |
IsUserAuthorizedForPermission(String, String, IUserInfo, Boolean) |
Checks the specified ecommerce permission for the given user.
| |
IsUserAuthorizedToModifyConfiguration |
Checks whether the user is authorized to modify site/global e-commerce configuration.
|