P
P
Pavel Chirkov2018-10-24 14:36:09
1C-Bitrix
Pavel Chirkov, 2018-10-24 14:36:09

How to make a currency selection filter on the entire site?

There is a site on bitrix, you need to make a filter to select the currency on the entire site, how can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2018-10-26
@pawelch

To display the currency switch itself, you can write your own component. The list of currencies can be obtained by a request from this ORM class https://dev.1c-bitrix.ru/api_d7/bitrix/currency/cu...
Basically, product prices are shown in the components bitrix:catalog and bitrix:
catalog.section to display prices in the required currency, you need to set 2 parameters in the component: CURRENCY_ID and CONVERT_CURRENCY. You can read about them here .
BUT!!! - the purchase of goods in different currencies cannot be done in this way. I talked with Bitrix TP on this topic. Here is a quote from their answer: " The implementation of multi-currency is not provided in the architecture of the store module. ".
The price from the settings will eventually pop up:
(and this is not a complete list)
Thus, you can make a conclusion on the website of prices in different currencies, but the purchase will take place only at the price specified in the settings of the Online Store module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question