Dynamicweb.eCommerce.Orders Namespace : FeeProvider Class |
public class MyFeeProvider:Dynamicweb.eCommerce.Orders.FeeProvider { public override Dynamicweb.eCommerce.Prices.PriceRaw FindFee(Dynamicweb.eCommerce.Orders.Order Order) { Dynamicweb.eCommerce.Prices.PriceRaw ReturnFee = null; if (Order.CustomerEmail != "") { IDataReader DR = Database.CreateDataReader( string.Format("SELECT TOP 1 * FROM EcomOrders WHERE OrderCustomerEmail = '{0}' AND OrderDate >= DATEADD(day, -1, GETDATE()) AND OrderComplete = {1}", Order.CustomerEmail, Database.SqlBool(true)), "Ecom.mdb"); if (DR.Read()) { ReturnFee = new Dynamicweb.eCommerce.Prices.PriceRaw(0.00, Dynamicweb.eCommerce.Common.Application.DefaultCurrency); } } return ReturnFee; } }
System.Object
Dynamicweb.eCommerce.Orders.FeeProvider
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