Documentation

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

ParameterDescriptionVersion
$itemItem ID in shopping cart.

Example



© «Bitrix24», 2001-2024