In the Ecommerce module, you can specify the following types of discounts:
- For all customers
- For new customers
- For existing customers
- For specific users or roles
- With a coupon code
The discounts are represented by the Telerik.Sitefinity.Ecommerce.Orders.Model.Discount class. The class exposes the following specific properties:
Gets or sets the ApplyDiscountFor value for the discount. The enumeration has the following values:
Discount is applicable to all the customers.
Discount is applicable to existing customers only.
Discount is applicable to new customers only.
Discount is applicable only when a coupon code is entered.
Discount is applicable to selected users and/or roles only.
Gets or sets the type of the discount. The enumeration has the following values:
Discount is applicable to the shopping cart subtotal.
Discount is applied when the customer enters a coupon code.
Specifies whether a coupon code is required.
Gets or sets the amount of the discount.
Gets or sets the type of the amount of the discount. The enumeration has the following values:
Discount is applied as a percentage of the shopping cart subtotal.
Discount is applied as a fixed amount of the shopping cart subtotal.
Gets or sets how many times the discount has been used.
Gets or sets the end date of the discount. After the specified date the discount cannot be used. If you don’t want to specify an end date, set this property to null.
Specifies whether the discount is active. Discounts that are not active cannot be used.
Gets or sets the maximum amount of the subtotal that the discount is applicable to.
Gets or sets the minimum amount of the subtotal that the discount is applicable to.
Gets or sets the start date of the discount, when it becomes available.
Gets or sets the title of the discount.
Gets or sets how many times the discount can be used. To specify an unlimited amount of use, set the property to –1.