$product =
$data->
get( $this->
getDataKey((string) $item->
getReferencedId()) );
// no data for enrich exists
if (!
$product instanceof SalesChannelProductEntity
) { return;
} // container products can not be bought
if ($product->
getChildCount() <= 0
) { return;
} $items->
remove($item->
getId());
} private function validateStock(LineItem
$item, Cart
$cart, LineItemCollection
$scope, CartBehavior
$behavior): void
{ if ($behavior->
hasPermission(self::SKIP_PRODUCT_STOCK_VALIDATION
)) { return;
}