Table of Contents

Class ProductDiscount

Namespace
Dynamicweb.Ecommerce.Orders.SalesDiscounts
Assembly
Dynamicweb.Ecommerce.dll
The class ProductDiscount represents SalesDiscountProvider based on specified products.
[AddInName("Product discount")]
[Obsolete("Sales discount provider is obsolete. Use DiscountExtender and related interfaces instead.")]
[AddInActive(true)]
[AddInOrder(1)]
public class ProductDiscount : SalesDiscountProvider, IProductDiscount
Inheritance
ProductDiscount
Implements
Inherited Members

Properties

DiscountAmount

Gets discount amount.
public double DiscountAmount { get; }

Property Value

double

DiscountId

Gets or sets the discount ID.
public override string DiscountId { get; set; }

Property Value

string
The discount ID.

DiscountName

Gets or sets the name of the discount.
public override string DiscountName { get; set; }

Property Value

string
The name of the discount.

IsPercent

Gets value indicating whether discount value type is percent.
public bool IsPercent { get; }

Property Value

bool

IsProductDiscount

Gets or sets value indicating whether discount is "product discount".
public override bool IsProductDiscount { get; set; }

Property Value

bool

Remarks

always returns true

ProductsAndGroups

Gets or sets products and groups that will trigger discount application.
[AddInParameter("Products")]
[AddInParameterEditor(typeof(ProductsAndGroupsEditor), "width=300px;height=100px")]
public string ProductsAndGroups { get; set; }

Property Value

string

Methods

ProcessOrder(Order)

Process the order to apply discount if valid.
public override void ProcessOrder(Order order)

Parameters

order Order
The order.
To top