Hi guys,
I have a question about the feeprovider in 8.9.1.7.
My product prices are set to prices including VAT.
My settings in the advanced cart properties are set to "Calculate % shipment costs incl VAT".
But with or without this checkbox set, the value is always interpreted in a way I don't want.
I stripped down the fee provider below to the bare bone.
I have a Product of EUR 10.00
The fee provider returns a price raw value of 100.00
I would expect the order price before fees to become 10.00
I would expect the Shipping fee to become 100.00
I would expect the order total price to become 110.00
But it doesn't
The price before fees is 10.00
The shipping fee is 82.64
The total price is 92.64
Somehow it takes the 100.00, then removes 21% (VAT) and uses the remainder as fee.
What can I do to get 100.00 as shipping fee??
namespace MyProject.Providers
{
public class MyOrderFeeProvider : FeeProvider
{
public override PriceRaw FindFee(Order Order)
{
double shippingFee = 100.00;
return new PriceRaw(shippingFee, Dynamicweb.eCommerce.Common.Application.DefaultCurrency);
}
}
}