Documentation

getItemByBasketCode

\Bitrix\Sale\BasketBase::getItemByBasketCode($code);

Method returns shopping cart item by ID. Non-static method.

When product is not found, returns null.

Parameters

ParameterDescriptionVersion
$codeItem ID in shopping cart.

Example



© «Bitrix24», 2001-2024