Click or drag to resize

LiveSalesDiscountProvider Class

Sales Discount Provider to handle discount lines coming from the ERP.
Inheritance Hierarchy

Namespace:  Dynamicweb.Ecommerce.LiveIntegration
Assembly:  Dynamicweb.Ecommerce.LiveIntegration (in Dynamicweb.Ecommerce.LiveIntegration.dll) Version: 3.0.1
Syntax
[AddInNameAttribute("Live integration discount")]
[AddInDescriptionAttribute("Apply discounts retrieved via live integration")]
public class LiveSalesDiscountProvider : SalesDiscountProvider

The LiveSalesDiscountProvider type exposes the following members.

Constructors
  NameDescription
Public methodLiveSalesDiscountProvider
Initializes a new instance of the LiveSalesDiscountProvider class
Top
Properties
  NameDescription
Public propertyDiscountId
Gets or sets the discount ID.
(Inherited from SalesDiscountProvider.)
Public propertyDiscountName
Gets or sets the name of the discount.
(Inherited from SalesDiscountProvider.)
Public propertyDiscounts
Gets or sets the currently added discounts applied to the order.
(Inherited from SalesDiscountProvider.)
Public propertyDiscountValue
Gets or sets the discount value.
(Inherited from SalesDiscountProvider.)
Public propertyHideDiscountValueGroupBox
Gets or sets a value indicating whether to hide discount value group box in the UI.
(Overrides SalesDiscountProviderHideDiscountValueGroupBox.)
Public propertyIsProductDiscount
Gets or sets a value indicating whether this instance is product discount.
(Inherited from SalesDiscountProvider.)
Public propertyProductDiscountProduct
Gets or sets the discount product.
(Inherited from SalesDiscountProvider.)
Top
Methods
  NameDescription
Public methodCreateAmountOrderline(Order, Double, Boolean) (Inherited from SalesDiscountProvider.)
Public methodCreateAmountOrderline(Order, Double, Boolean, OrderLine) (Inherited from SalesDiscountProvider.)
Protected methodCreateProductOrderline(Order, Product) (Inherited from SalesDiscountProvider.)
Protected methodCreateProductOrderline(Order, String) (Inherited from SalesDiscountProvider.)
Protected methodCreateProductOrderline(Order, String, String) (Inherited from SalesDiscountProvider.)
Public methodGetIdSuitableString
Gets the id suitable string.
(Inherited from ConfigurableAddIn.)
Protected methodGetOrderDiscounts (Inherited from SalesDiscountProvider.)
Public methodGetParametersToXml
Gets the parameters to XML.
(Inherited from ConfigurableAddIn.)
Public methodGetParametersToXml(Boolean)
Gets the parameters to XML.
(Inherited from ConfigurableAddIn.)
Public methodLoadParametersFromXml
Loads the parameters from XML.
(Inherited from ConfigurableAddIn.)
Public methodCode exampleProcessOrder
Processes the order.
(Overrides SalesDiscountProviderProcessOrder(Order).)
Public methodRenderAdditionalContent
Renders the content of the additional.
(Inherited from ConfigurableAddIn.)
Public methodSetValue
Sets the value.
(Inherited from ConfigurableAddIn.)
Public methodUpdateFromPost
Updates from post back.
Remarks
Get the parameter from Context.Current.Request.Form
Form information. Null is allowed.
(Inherited from ConfigurableAddIn.)
Top
Fields
  NameDescription
Protected fieldDefaultVoucherCodeFieldCaption (Inherited from SalesDiscountProvider.)
Top
See Also