Table of Contents

Class FlatRateTaxProvider

Namespace
Dynamicweb.Ecommerce.Products.Taxes.TaxProviders
Assembly
Dynamicweb.Ecommerce.dll

Flat rate tax provider

[AddInName("Flat rate tax provider")]
public class FlatRateTaxProvider : TaxProvider, IParameterOptions
Inheritance
FlatRateTaxProvider
Implements
Inherited Members

Fields

AmountType

public TaxAmountType AmountType

Field Value

TaxAmountType

Properties

Amount

[AddInParameter("Amount")]
[AddInParameterEditor(typeof(TextParameterEditor), "inputClass=NewUIinput; Explanation=If 'Fixed' is selected, the currency of the fixed amount is the default currency set for products")]
public double Amount { get; set; }

Property Value

double

AmountTypeSelection

[AddInParameter("Amount type")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "none=false;NewGUI=true")]
public string AmountTypeSelection { get; set; }

Property Value

string

ProductsAndGroups

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

Property Value

string

Methods

AddTaxOrderLinesToOrder(Order)

Adds taxes for a order.

public override void AddTaxOrderLinesToOrder(Order order)

Parameters

order Order

The order.

AddTaxesToProducts(IEnumerable<Product>)

Adds taxes for given products.

public override void AddTaxesToProducts(IEnumerable<Product> products)

Parameters

products IEnumerable<Product>

The products.

To top