Documentation

setBasket

\Bitrix\Sale\Result public
\Bitrix\Sale\OrderBase::setBasket(
	\Bitrix\Sale\BasketBase $basket
);

Method associates shopping cart to a new order and refreshes it. WHen attempting to associate shopping cart to an existing order, throws an exception: \Bitrix\Main\NotSupportedException . Non-static method.

Parameters

ParameterDescriptionVersion
$basketShopping cart object.

Exception

  • \Bitrix\Main\NotSupportedException

Example



© «Bitrix24», 2001-2024
Up