Z
Z
zahar_922020-11-06 16:31:47
1C-Bitrix
zahar_92, 2020-11-06 16:31:47

How to convert currency in script.js bitrix?

Hello! The site uses 2 currencies. Each is used for its region. There are no problems in php, everything is set up,

$arItem["FULL_PRICE"] =  CCurrencyRates::ConvertCurrency($arItem["FULL_PRICE"], 'RUB', "USD");

but in the cart, when updating the quantity, the currency of the product is pulled up by default. How to convert it to script.js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-11-06
Madzhugin @Suntechnic

Convert it on the site side to mutator.php.
No need to do the same task in two different places. Especially on opposite sides of the network.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question