Answer the question
In order to leave comments, you need to log in
Is it possible to set a price for a product offered as a gift through the rules for working with the basket?
I registered a rule for working with a basket - to provide a gift when entering a coupon.
There was a task - to add to the basket with the price not 0, but 1 rub.
Registered the handler in init.php
AddEventHandler("sale", "OnBeforeBasketAdd", "CorrectSumm");
function CorrectSumm(&$arFields){
if($arFields['PRICE'] == 0)
$arFields['PRICE'] = 1;
}
Answer the question
In order to leave comments, you need to log in
Are there any ways to solve such a problem?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question