Answer the question
In order to leave comments, you need to log in
How to remove goods from the order in 1s Bitrix?
Can you please tell me if there is such an opportunity in 1s Bitrix to remove the product from the contents of the order? I need to make a button that will remove the product from the content of the order.
As I understand it, you need to use this code
$basket = Sale\Basket::loadItemsForFUser($fuser, SITE_ID);
$basketItem = $basket->getItemById($basketItemId);
$result = $basketItem->delete();
if ($result->isSuccess())
{
$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