ECommerceHelper Class |
Namespace: CMS.Ecommerce
public static class ECommerceHelper
The ECommerceHelper type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | ApplyDiscounts |
Applies given discounts to specified price. Reflects discounts ordering. Discount value is calculated using discountCalculator function.
|
![]() ![]() | DeleteOrDisable |
Checks dependencies of given object and deletes it when nothing depends. Disables object otherwise.
Needs EnabledColumn to be filled in TypeInfo of given object.
|
![]() ![]() | GetAllCouponCodesQuery |
Returns data query with codes in CouponCodeCode column from MultiBuyCouponCodes and CouponCodes on specified site.
|
![]() ![]() | GetDiscountValue(Double, IItemDiscount, FuncDouble, Double) |
Returns discount calculated from given price. Exchange rate applicator function will be applied if discount is global and flat.
|
![]() ![]() | GetDiscountValue(Double, Double, Boolean) |
Returns discount calculated from the specified price.
|
![]() ![]() | GetSiteID |
Returns 0 if specified site uses global objects based on the specified e-commerce setting, otherwise returns site ID of the specified site.
|
![]() ![]() | GetTableColumnSum |
Returns sum of all values from the specified table column.
|
![]() ![]() | 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.
|
![]() ![]() | SignChanged |
Returns true if signs of two doubles are different.
|
![]() ![]() | TrackAddToShoppingCartConversion |
Tracks add to shopping cart conversion.
|
![]() ![]() | TrackOrderConversion |
Tracks order conversion.
|
![]() ![]() | TrackOrderItemsConversions |
Tracks conversions of all order items
|
![]() ![]() | TrackRegistrationConversion |
Tracks registration conversion.
|