Click or drag to resize
CurrencyInfoProviderChangeMainCurrency Method
Changes main currency and recalculates specified "money" values.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax
C#
public static void ChangeMainCurrency(
	int siteId,
	int newCurrencyId,
	double coefficient,
	int roundTo,
	RecalculationSettings settings
)

Parameters

siteId
Type: SystemInt32
ID of the site, which main currency is to be changed
newCurrencyId
Type: SystemInt32
ID of the new main currency
coefficient
Type: SystemDouble
Exchange rate which will be used when recalculating
roundTo
Type: SystemInt32
Number of decimal digits to which the result will be rounded
settings
Type: CMS.EcommerceRecalculationSettings
Determines which objects are to be recalculated
See Also