source/Application/Model/Article.php
protected function _getAmountPrice($amount = 1)
    {
        startProfile("_getAmountPrice");

        $dPrice = $this->_getGroupPrice();
        $oAmtPrices = $this->_getAmountPriceList();
        foreach ($oAmtPrices as $oAmPrice) {
            if ($oAmPrice->oxprice2article__oxamount->value <= $amount
                && $amount <= $oAmPrice->oxprice2article__oxamountto->value
                && $dPrice > $oAmPrice->oxprice2article__oxaddabs->value
            ) {
                $dPrice = $oAmPrice->oxprice2article__oxaddabs->value;
            }
        }

        stopProfile("_getAmountPrice");

        return $dPrice;
    }
protected function _getAmountPrice($amount = 1)
    {
        startProfile("_getAmountPrice");

        $dPrice = $this->_getGroupPrice();
        $oAmtPrices = $this->_getAmountPriceList();
        foreach ($oAmtPrices as $oAmPrice) {
            if ($oAmPrice->oxprice2article__oxamount->value <= $amount
                && $amount <= $oAmPrice->oxprice2article__oxamountto->value
                && $dPrice > $oAmPrice->oxprice2article__oxaddabs->value
            ) {
                $dPrice = $oAmPrice->oxprice2article__oxaddabs->value;
            }
        }

        stopProfile("_getAmountPrice");

        return $dPrice;
    }
protected function _getAmountPrice ( $ amount = 1 ) { startProfile ( "_getAmountPrice" ) ; $ dPrice = $ this -> _getGroupPrice ( ) ; $ oAmtPrices = $ this -> _getAmountPriceList ( ) ; foreach ( $ oAmtPrices as $ oAmPrice ) { if ( $ oAmPrice -> oxprice2article__oxamount -> value <= $ amount && $ amount <= $ oAmPrice -> oxprice2article__oxamountto -> value && $ dPrice > $ oAmPrice -> oxprice2article__oxaddabs -> value ) { $ dPrice = $ oAmPrice -> oxprice2article__oxaddabs -> value ; } } stopProfile ( "_getAmountPrice" ) ; return $ dPrice ; }
Modifies article price depending on given amount.
Takes data from oxprice2article table.

@param int $amount Basket amount

@return double
Modifies article price depending on given amount . Takes data from oxprice2article table .