ExchangeRateInfoProvider GetLastExchangeRateInternal Method Kentico 8.1 API Reference
Returns valid exchange rate between main currency of the specified site and currency specified by currencyID or last invalid exchange rate if no valid rate found or 1 if no exchange rate found.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

currencyId
Type: OnlineSystem Int32
ID of the currency to which we want exchange
siteId
Type: OnlineSystem Int32
ID of the site for which the exchange rate should be returned
fromGlobal
Type: OnlineSystem Boolean
If set to true, exchange rate between global main currency and specified site currency is calculated and returned. Has effect only when converting to site currency

Return Value

Type: OnlineDouble
See Also