Answer the question
In order to leave comments, you need to log in
Bitrix own price for the item in the cart CUSTOM_PRICE?
A piece of code for creating a product update in the cart:
...
if ($basketId) {
$item = $basket->getItemById($basketId);
} else {
$item = $basket->createItem('catalog', $productId);
}
$item->setFields(
[
'QUANTITY' => $arItem[OrderItemTable::FIELD_QUANTITY],
'NAME' => $arItem["PRODUCT_NAME"],
'CURRENCY' => \Bitrix\Currency\CurrencyManager::getBaseCurrency(),
'LID' => 's1',
'PRODUCT_XML_ID' => $arItem[OrderItemTable::FIELD_PRODUCT_XML_ID],
'PRICE' => $arItem[OrderItemTable::FIELD_PRICE],
'CUSTOM_PRICE' => 'Y',
]
);
$item->save();
...
$basket->save();
$rs = $rsOrder->save();
Answer the question
In order to leave comments, you need to log in
1) Check the inventory control settings and for some reason I don't see the provider class when creating the product. Are you transferring it? Check the current data here - https://dev.1c-bitrix.ru/community/blogs/vws/about...
2) And in the paymentCollection after changing the price everything is fine?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question