Answer the question
In order to leave comments, you need to log in
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(),
);
}
}
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question