createItem
\Bitrix\Sale\BasketItemCollection::createItem($moduleId, $productId, $basketCode = null);
Method creates and adds an item into collection. Non-static method.
Returns create object.
Parameters
Parameter | Description | Version |
---|---|---|
$moduleId | Order class object. | |
$siteId | Order class object. | |
$siteId | Order class object. Optional. |
Example
© «Bitrix24», 2001-2024
Up