Model/OutOfStockValidator.php
public function hasOutOfStockArticles()
    {
        $result = false;

        $basketContents = $this->getBasket()->getContents();

        foreach ($basketContents as $basketItem) {
            $article = $basketItem->getArticle();
            if (($article->getStockAmount() - $basketItem->getAmount()) < $this->getEmptyStockLevel()) {
                $result = true;
                break;
            }
        }

        return $result;
    }
public function hasOutOfStockArticles()
    {
        $result = false;

        $basketContents = $this->getBasket()->getContents();

        foreach ($basketContents as $basketItem) {
            $article = $basketItem->getArticle();
            if (($article->getStockAmount() - $basketItem->getAmount()) < $this->getEmptyStockLevel()) {
                $result = true;
                break;
            }
        }

        return $result;
    }
public function hasOutOfStockArticles ( ) { $ result = false ; $ basketContents = $ this -> getBasket ( ) -> getContents ( ) ; foreach ( $ basketContents as $ basketItem ) { $ article = $ basketItem -> getArticle ( ) ; if ( ( $ article -> getStockAmount ( ) - $ basketItem -> getAmount ( ) ) < $ this -> getEmptyStockLevel ( ) ) { $ result = true ; break ; } } return $ result ; }
Checks if basket has Articles that are out of stock.

@return bool
Checks if basket has Articles that are out of stock .