All this new stuff in v1.9...I'm beginning to feel like I'm in the dark ages by using v1.6 :-).
Anyway, thanks for all your help. I have made the modifications and it works beautifully.
I don't know what else is in v1.9, but I also made the following modification in order to display prices in either the order currency or the Working Currency depending on a configuration switch:
In PriceHelper.cs:
private static bool? _FormatPriceToWorkingCurrency = null;
public static bool? FormatPriceToWorkingCurrency {
get {
return _FormatPriceToWorkingCurrency ?? SettingManager.GetSettingValueBoolean("Price.FormatPriceToWorkingCurrency");
}
set {
_FormatPriceToWorkingCurrency = value;
}
}
Also in PriceHelper.cs, but in FormatPrice(decimal price, bool showCurrency, Currency targetCurrency, Language language, bool priceIncludesTax, bool showTax)
if (FormatPriceToWorkingCurrency ?? true) {
price = CurrencyManager.ConvertCurrency(price, targetCurrency, NopContext.Current.WorkingCurrency);
targetCurrency = NopContext.Current.WorkingCurrency;
}
This change may not fit in with the original nopCommerce paradigm for the display of prices, but for my implementation, it ensures that the customer can always see what the price is (or would be) in any currency simply by selecting the relevant currency from the Currency dropdown box; and this is consistent throughout the site.
What are your thoughts on this?