D7 API documentation
What's New
getExistsItemByItem
\Bitrix\Sale\BasketBase::getExistsItemByItem( \Bitrix\Sale\BasketItemBase $item );
Method searches by item of the same product in shopping cart. Method returns shopping cart item on success. Non-static method.
When product is not found, returns null
.
Parameters
Parameter | Description | Version |
---|---|---|
$item | Item ID in shopping cart. |
Example
© «Bitrix24», 2001-2024
Up