Documentation

createItem

\Bitrix\Sale\BasketItemCollection::createItem($moduleId, $productId, $basketCode = null);

Method creates and adds an item into collection. Non-static method.

Returns create object.

Parameters

ParameterDescriptionVersion
$moduleIdOrder class object.
$siteId Order class object.
$siteId Order class object. Optional.

Example



© «Bitrix24», 2001-2024