Table of Contents

Class PromoCodeChecker

Namespace
Dynamicweb.Ecommerce.Orders.SalesDiscounts
Assembly
Dynamicweb.Ecommerce.dll
The class provide functionality that allows to check if a voucher code *might* work.
[Obsolete("Sales discount functionality is obsolete. Use Dynamicweb.Ecommerce.Orders.Discounts.* instead.")]
public class PromoCodeChecker
Inheritance
PromoCodeChecker
Inherited Members

Methods

CheckOrderPromoCode(string)

Check a voucher code.
public static PromoCodeInfo CheckOrderPromoCode(string voucherCode)

Parameters

voucherCode string
The voucher code.

Returns

PromoCodeInfo
Information about voucher code

CheckOrderPromoCode(string, PromoCodeType)

Check a voucher code.
public static PromoCodeInfo CheckOrderPromoCode(string voucherCode, PromoCodeInfo.PromoCodeType codeType)

Parameters

voucherCode string
The voucher code.
codeType PromoCodeInfo.PromoCodeType
The type of voucher code.

Returns

PromoCodeInfo
Information about voucher code

CheckOrderPromoCode(string, PromoCodeType, string)

Check a voucher code.
public static PromoCodeInfo CheckOrderPromoCode(string voucherCode, PromoCodeInfo.PromoCodeType codeType, string customDiscountParameter)

Parameters

voucherCode string
The voucher code.
codeType PromoCodeInfo.PromoCodeType
The type of voucher code.
customDiscountParameter string
The name of parameter with voucher code.

Returns

PromoCodeInfo
Information about voucher code

CheckOrderPromoCode(string, string)

Check a voucher code.
public static PromoCodeInfo CheckOrderPromoCode(string voucherCode, string customDiscountParameter)

Parameters

voucherCode string
The voucher code.
customDiscountParameter string
The name of parameter with voucher code.

Returns

PromoCodeInfo
Information about voucher code
To top