Documentation

enableCurrencyConversion

void public
\Bitrix\Iblock\PropertyIndex\Facet::enableCurrencyConversion(
 string $toCurrencyId,
 array $convertCurrencyId
);

After calling this method all subsequent queries will be automatically using converted currency for filtering. Non-static method.

Method can be used only with the Currency module installed.

Parameters

ParameterDescriptionVersion
$toCurrencyIdCurrency ID for prices, passed into the method addPriceFilter.
$convertCurrencyIdArray of available currency IDs.

Example



© «Bitrix24», 2001-2022
Up