Class OrderFieldDiscountUniqueVoucher
- Namespace
- Dynamicweb.Ecommerce.Orders.SalesDiscounts
- Assembly
- Dynamicweb.Ecommerce.dll
The class OrderFieldDiscountUniqueVoucher represents SalesDiscountProvider based on vouchers.
[AddInName("Order Field discount unique voucher")]
[AddInDescription("Create voucher codes with specified discount value.")]
[AddInActive(true)]
[AddInOrder(7)]
[Obsolete("Sales discount provider is obsolete. Use DiscountExtender and related interfaces instead.")]
public class OrderFieldDiscountUniqueVoucher : SalesDiscountProvider, IDropDownOptions, IVoucherlistDiscount
- Inheritance
-
OrderFieldDiscountUniqueVoucher
- Implements
- Inherited Members
Properties
DiscountAmount
Gets discount amount.
public double DiscountAmount { get; }
Property Value
IsPercent
Gets value indicating whether discount value type is percent.
public bool IsPercent { get; }
Property Value
ListId
Gets or sets the voucher list id.
[AddInParameter("List ID")]
public int ListId { get; set; }
Property Value
ListName
Gets or sets the voucher list name.
[AddInParameter("Vouchers List Name")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "")]
public string ListName { get; set; }
Property Value
Remarks
When set voucher list name ListId will be changed on id taken from database given list name.
Methods
GetOptions(string)
Gets the options.
public Hashtable GetOptions(string name)
Parameters
name
string- The option name.
Returns
ProcessOrder(Order)
Process the order to apply discount if valid.
public override void ProcessOrder(Order order)
Parameters
order
Order- The order.