Posted on 28/04/2009 21:41:14
Is that value available at that time ?
Isn't that calculated AFTER the Custom FeeProvider.
I tried this, but the server fell over when i came to Accept Basket:
Public
Class LHFeeProviderInherits Dynamicweb.eCommerce.Orders.FeeProviderPublic Overloads Overrides Function FindFee(ByVal Order As Dynamicweb.eCommerce.Orders.Order) As Dynamicweb.eCommerce.Prices.PriceRawDim ReturnFee As Dynamicweb.eCommerce.Prices.PriceRaw = Nothing
ReturnFee =
End
Dim MyFee As Double = 11.5RDim DWFee As Double = Order.ShippingFee.PriceNew Dynamicweb.eCommerce.Prices.PriceRaw(MyFee, Dynamicweb.eCommerce.Common.Application.DefaultCurrency)Return ReturnFeeEnd Function Class
The only thing i added from a working version was this line:
Dim DWFee As Double = Order.ShippingFee.Price
Adding a line to the order could be done, but then you have the hazzle of pulling it off again if the order suddenly meets the condition of NOT requiring this handlingfee.
Any suggestions ?
Can i control the PaymentFee instead ?
eg setting that to a value of my choice depending on certain conditions..