source/Application/Model/Article.php
protected function _fillAmountPriceList($aAmPriceList)
    {
        $oLang = \OxidEsales\Eshop\Core\Registry::getLang();

        // trying to find lowest price value
        foreach ($aAmPriceList as $sId => $oItem) {
            /** @var \OxidEsales\Eshop\Core\Price $oItemPrice */
            $oItemPrice = $this->_getPriceObject();
            if ($oItem->oxprice2article__oxaddabs->value) {
                $dBasePrice = $oItem->oxprice2article__oxaddabs->value;
                $dBasePrice = $this->_prepareModifiedPrice($dBasePrice);

                $oItemPrice->setPrice($dBasePrice);
                $this->_calculatePrice($oItemPrice);
            } else {
                $dBasePrice = $this->_getGroupPrice();

                $dBasePrice = $this->_prepareModifiedPrice($dBasePrice);

                $oItemPrice->setPrice($dBasePrice);
                $oItemPrice->subtractPercent($oItem->oxprice2article__oxaddperc->value);
            }

            $aAmPriceList[$sId]->fbrutprice = $oLang->formatCurrency($oItemPrice->getBruttoPrice());
            $aAmPriceList[$sId]->fnetprice = $oLang->formatCurrency($oItemPrice->getNettoPrice());

            if ($quantity = $this->getUnitQuantity()) {
                $aAmPriceList[$sId]->fbrutamountprice = $oLang->formatCurrency($oItemPrice->getBruttoPrice() / $quantity);
                $aAmPriceList[$sId]->fnetamountprice = $oLang->formatCurrency($oItemPrice->getNettoPrice() / $quantity);
            }
        }

        return $aAmPriceList;
    }
protected function _fillAmountPriceList($aAmPriceList)
    {
        $oLang = \OxidEsales\Eshop\Core\Registry::getLang();

        // trying to find lowest price value
        foreach ($aAmPriceList as $sId => $oItem) {
            /** @var \OxidEsales\Eshop\Core\Price $oItemPrice */
            $oItemPrice = $this->_getPriceObject();
            if ($oItem->oxprice2article__oxaddabs->value) {
                $dBasePrice = $oItem->oxprice2article__oxaddabs->value;
                $dBasePrice = $this->_prepareModifiedPrice($dBasePrice);

                $oItemPrice->setPrice($dBasePrice);
                $this->_calculatePrice($oItemPrice);
            } else {
                $dBasePrice = $this->_getGroupPrice();

                $dBasePrice = $this->_prepareModifiedPrice($dBasePrice);

                $oItemPrice->setPrice($dBasePrice);
                $oItemPrice->subtractPercent($oItem->oxprice2article__oxaddperc->value);
            }

            $aAmPriceList[$sId]->fbrutprice = $oLang->formatCurrency($oItemPrice->getBruttoPrice());
            $aAmPriceList[$sId]->fnetprice = $oLang->formatCurrency($oItemPrice->getNettoPrice());

            if ($quantity = $this->getUnitQuantity()) {
                $aAmPriceList[$sId]->fbrutamountprice = $oLang->formatCurrency($oItemPrice->getBruttoPrice() / $quantity);
                $aAmPriceList[$sId]->fnetamountprice = $oLang->formatCurrency($oItemPrice->getNettoPrice() / $quantity);
            }
        }

        return $aAmPriceList;
    }
protected function _fillAmountPriceList ( $ aAmPriceList ) { $ oLang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) ; // trying to find lowest price value foreach ( $ aAmPriceList as $ sId => $ oItem ) { /** @var \OxidEsales\Eshop\Core\Price $oItemPrice */ $ oItemPrice = $ this -> _getPriceObject ( ) ; if ( $ oItem -> oxprice2article__oxaddabs -> value ) { $ dBasePrice = $ oItem -> oxprice2article__oxaddabs -> value ; $ dBasePrice = $ this -> _prepareModifiedPrice ( $ dBasePrice ) ; $ oItemPrice -> setPrice ( $ dBasePrice ) ; $ this -> _calculatePrice ( $ oItemPrice ) ; } else { $ dBasePrice = $ this -> _getGroupPrice ( ) ; $ dBasePrice = $ this -> _prepareModifiedPrice ( $ dBasePrice ) ; $ oItemPrice -> setPrice ( $ dBasePrice ) ; $ oItemPrice -> subtractPercent ( $ oItem -> oxprice2article__oxaddperc -> value ) ; } $ aAmPriceList [ $ sId ] -> fbrutprice = $ oLang -> formatCurrency ( $ oItemPrice -> getBruttoPrice ( ) ) ; $ aAmPriceList [ $ sId ] -> fnetprice = $ oLang -> formatCurrency ( $ oItemPrice -> getNettoPrice ( ) ) ; if ( $ quantity = $ this -> getUnitQuantity ( ) ) { $ aAmPriceList [ $ sId ] -> fbrutamountprice = $ oLang -> formatCurrency ( $ oItemPrice -> getBruttoPrice ( ) / $ quantity ) ; $ aAmPriceList [ $ sId ] -> fnetamountprice = $ oLang -> formatCurrency ( $ oItemPrice -> getNettoPrice ( ) / $ quantity ) ; } } return $ aAmPriceList ; }
Fills amount price list object and sets amount price for article object

@param array $aAmPriceList Amount price list

@return array
Fills amount price list object and sets amount price for article object