V
V
VladPolanski2018-03-15 17:16:59
1C-Bitrix
VladPolanski, 2018-03-15 17:16:59

How to set the price in the basket depending on the currency?

Good evening. Dear bitrixomaniacs, tell me, please, there is an editorial office of the Small Business website. There is one type of price available. In general, there are two of them in the card -> Base and Purchase price. Having made a feint with my ears, I left the Basic one in rubles, but I turned the purchasing one into dollars. But! When adding an item to the cart - I always have a ruble! How can I make sure that if I bought for a ruble, then there is a ruble in the basket, and if it is a dollar, then there is a dollar in the basket. Help pliz (
Adding to the cart goes through the function

<?
if($_POST["ADD"]){
    
    require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
    if (CModule::IncludeModule("catalog"))
    {
        Add2Basket(
            $_POST["PRICE_ID"],
            1,
            array(),
            array(),
        );
    }
}
?>

But the purchase price does not have a separate ID

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-03-15
@idruweb

Specify the currency in the product property in the cart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question