Answer the question
In order to leave comments, you need to log in
How to write to b_sale_basket_props table?
Bitrix 16.5.10.
I need to write basket properties to the b_sale_basket_props table using a script. I found how to write in b_sale_basket.
$basket = $newOrder->getBasket();
$item = self::getExistsItem($basket, 'catalog', $product['offer']['externalId']);
$item->setField('CUSTOM_PRICE', 'Y');
$item->setField('PRICE', $itemCost);
$item->setField('DISCOUNT_NAME', '');
$item->setField('DISCOUNT_VALUE', '');
$basket->save();
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