Hide Currency Label

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 năm cách đây
Is there way to hide the currency label. In my case, specifically I need to remove (USD). When I try to simply give the currency "no label" it errors out saying a label is required.

Any solution, programmatic or working with the Administrative section would be great.

Thanks, Ryan
13 năm cách đây
1. Just disable or delete all other currencies from admin area and USD will disappear (ensure that only one currency is enabled)
or
2. Delete the following code in PriceHelper.GetCurrencyString(decimal amount, bool showCurrency, Currency targetCurrency) method :
if (showCurrency && CurrencyManager.GetAllCurrencies().Count > 1)
result = String.Format("{0} ({1})", result, targetCurrency.CurrencyCode);
13 năm cách đây
Thank you! That is exactly the information I was looking for and I appreciate the quick reply.

Ryan
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.