Dynamicweb 8 Documentation
VatProvider Class
Members  Example 

The VatProvider allows you to manipulate country VAT on a product in eCommerce using a class inherited from Dynamicweb.eCommerce.Orders.VatProvider.
Syntax
'Declaration
 
Public Class VatProvider 
public class VatProvider 
Example
The following example demonstrates how to create a VAT on luxury products (a sign that the product is a luxury suite will be the presence of the 'LUX' word in MetaKeywords field).
public class MyVatProvider:Dynamicweb.eCommerce.Orders.VatProvider
{
    public override Double
    FindVatPercent(Double defaultVatPercent, Product product)
    {
        Dynamicweb.eCommerce.Prices.PriceRaw ReturnFee = null;
        if (Product.Meta.Keywords.IndexOf("LUX") > -1)
            return 20;
        else
            return defaultVatPercent;
    }
}
Inheritance Hierarchy

System.Object
   Dynamicweb.eCommerce.Orders.VatProvider

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

VatProvider Members
Dynamicweb.eCommerce.Orders Namespace

Send Feedback