Table of Contents

Class ProductOrderFieldDiscountUniqueVoucher

Namespace
Dynamicweb.Ecommerce.Orders.SalesDiscounts
Assembly
Dynamicweb.Ecommerce.dll
[AddInName("Product total price discount unique voucher")]
[AddInDescription("Provides discount for specified products or product groups if the order field filled with a correct voucher code and (optional) total price satisfies conditions.")]
[AddInActive(true)]
[AddInOrder(4)]
[Obsolete("Sales discount provider is obsolete. Use DiscountExtender and related interfaces instead.")]
public class ProductOrderFieldDiscountUniqueVoucher : SalesDiscountProvider, IDropDownOptions, IVoucherlistDiscount
Inheritance
ProductOrderFieldDiscountUniqueVoucher
Implements
Inherited Members

Properties

BuyLimit

Gets or sets buy limit.
[AddInParameter("Order buy limit")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public double BuyLimit { get; set; }

Property Value

double

Remarks

By default limit is 1000.0

BuyLimitCalculated

Gets or sets calculated buy limit.
[Obsolete("Not used")]
public double BuyLimitCalculated { get; set; }

Property Value

double

DiscountAmount

Gets discount amount.
public double DiscountAmount { get; }

Property Value

double

IncludeBuyLimit

Gets or sets value indicating whether BuyLimit is included.
[AddInParameter("Include buy limit")]
[AddInParameterEditor(typeof(YesNoParameterEditor), "")]
public bool IncludeBuyLimit { get; set; }

Property Value

bool

IsPercent

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

Property Value

bool

ListId

Gets or sets the voucher list id.
[AddInParameter("List ID")]
public int ListId { get; set; }

Property Value

int

ListName

Gets or sets the voucher list name.
[AddInParameter("Vouchers List Name")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "")]
public string ListName { get; set; }

Property Value

string

Remarks

When set voucher list name ListId will be changed on id taken from database given list name.

MoreLess

Gets or sets MoreLess condition.
[AddInParameter("Condition")]
[AddInParameterEditor(typeof(MoreLessParameterEditor), "")]
public string MoreLess { get; set; }

Property Value

string

Examples

">", ">=", "==", "<", "<="

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

GetOptions(string)

Gets the options.
public Hashtable GetOptions(string name)

Parameters

name string
The option name.

Returns

Hashtable

ProcessOrder(Order)

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

Parameters

order Order
The order.
To top