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
ProductQuantity
[AddInParameter("Product quantity")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public int ProductQuantity { get; set; }
Property Value
ProductsAndGroups
[AddInParameter("Products")]
[AddInParameterEditor(typeof(ProductsAndGroupsEditor), "width=300px;height=100px")]
public string ProductsAndGroups { get; set; }
Property Value
Methods
GetOptions(string)
Get options for editors with multiple values
public Hashtable GetOptions(string Name)
Parameters
Name
string
Returns
ProcessOrder(Order)
Processes the order.
public override void ProcessOrder(Order _order)
Parameters
_order
Order
Examples
Look on example forSalesDiscountProvider
class