Hi guys,
I have the following PriceProvider:
public class InternationalPrices : PriceProvider
{
public override PriceRaw FindPrice(Product product, double quantity, string variantId, Currency currency, string unitId, Extranet user)
{
// Get the price from the DefaultPriceProvider
var defaultProvider = new DefaultPriceProvider();
var rawPrice = defaultProvider.FindPrice(product, quantity, variantId, currency, unitId, user);
// Todo: implement logic to markup price depending on the current site.
return rawPrice;
}
}
When I run this for a German site with EUR as the currency, rawPrice contains "70" which is the price for the default currency (USD). It's not being converted to Euros using the conversion rate. When I take out my provider, the list page shows something like 63.54; the price in Euros as converted from USDs.
Why is the DefaultPriceProvider not returning a price in the proper currency even though the currency is passed in?
Thanks,
Imar