CurrencyInfoProvider.ChangeMainCurrency Method |
Changes main currency and recalculates specified "money" values.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax public static void ChangeMainCurrency(
int siteId,
int newCurrencyId,
double coefficient,
int roundTo,
RecalculationSettings settings
)
Parameters
- siteId
- Type: System.Int32
ID of the site, which main currency is to be changed - newCurrencyId
- Type: System.Int32
ID of the new main currency - coefficient
- Type: System.Double
Exchange rate which will be used when recalculating - roundTo
- Type: System.Int32
Number of decimal digits to which the result will be rounded - settings
- Type: CMS.Ecommerce.RecalculationSettings
Determines which objects are to be recalculated
See Also