Table of Contents

Class ProductQuantityDiscount

Namespace
ProductQuantityDiscount
Assembly
Dynamicweb.Ecommerce.Examples.dll
[AddInName("Quantity discount")]
[AddInDescription("A 'Buy 3 pay for 2' or 'Buy 4, get 50% of the cheapest' discount.")]
[AddInActive(true)]
[AddInIsAdditional(false)]
[AddInOrder(2)]
public class ProductQuantityDiscount : SalesDiscountProvider, IDropDownOptions
Inheritance
ProductQuantityDiscount
Implements
Inherited Members

Properties

ApplyType

[AddInParameter("Applies to")]
[AddInParameterEditor(typeof(RadioParameterEditor), "")]
public string ApplyType { get; set; }

Property Value

string

ProductQuantity

[AddInParameter("Product quantity")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public int ProductQuantity { get; set; }

Property Value

int

ProductsAndGroups

[AddInParameter("Products")]
[AddInParameterEditor(typeof(ProductsAndGroupsEditor), "width=300px;height=100px")]
public string ProductsAndGroups { get; set; }

Property Value

string

Methods

GetOptions(string)

Get options for editors with multiple values
public Hashtable GetOptions(string Name)

Parameters

Name string

Returns

Hashtable

ProcessOrder(Order)

Processes the order.
public override void ProcessOrder(Order _order)

Parameters

_order Order

Examples

Look on example for SalesDiscountProvider class
To top