• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/basketitem.php
  • Класс: BitrixSaleBasketItem
  • Вызов: BasketItem::findItemById
public function findItemById($id)
{
	$item = parent::findItemById($id);
	if ($item !== null)
		return $item;

	if ($this->isBundleParent())
	{
		$collection = $this->getBundleCollection();
		/** @var BasketItemBase $basketItem */
		foreach ($collection as $basketItem)
		{
			$item = $basketItem->findItemById($id);
			if ($item !== null)
				return $item;
		}
	}

	return null;
}