source/Application/Model/Article.php
public function getBasketPrice($dAmount, $aSelList, $oBasket)
    {
        $oUser = $oBasket->getBasketUser();
        $this->setArticleUser($oUser);

        $oBasketPrice = $this->_getPriceObject($oBasket->isCalculationModeNetto());

        // get base price
        $dBasePrice = $this->getBasePrice($dAmount);

        $dBasePrice = $this->_modifySelectListPrice($dBasePrice, $aSelList);
        $dBasePrice = $this->_preparePrice($dBasePrice, $this->getArticleVat(), $oBasket->isCalculationModeNetto());

        // applying select list price

        // setting price
        $oBasketPrice->setPrice($dBasePrice);

        $dVat = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\VatSelector::class)->getBasketItemVat($this, $oBasket);
        $this->_calculatePrice($oBasketPrice, $dVat);

        // returning final price object
        return $oBasketPrice;
    }
public function getBasketPrice($dAmount, $aSelList, $oBasket)
    {
        $oUser = $oBasket->getBasketUser();
        $this->setArticleUser($oUser);

        $oBasketPrice = $this->_getPriceObject($oBasket->isCalculationModeNetto());

        // get base price
        $dBasePrice = $this->getBasePrice($dAmount);

        $dBasePrice = $this->_modifySelectListPrice($dBasePrice, $aSelList);
        $dBasePrice = $this->_preparePrice($dBasePrice, $this->getArticleVat(), $oBasket->isCalculationModeNetto());

        // applying select list price

        // setting price
        $oBasketPrice->setPrice($dBasePrice);

        $dVat = \OxidEsales\Eshop\Core\Registry::get(\OxidEsales\Eshop\Application\Model\VatSelector::class)->getBasketItemVat($this, $oBasket);
        $this->_calculatePrice($oBasketPrice, $dVat);

        // returning final price object
        return $oBasketPrice;
    }
public function getBasketPrice ( $ dAmount , $ aSelList , $ oBasket ) { $ oUser = $ oBasket -> getBasketUser ( ) ; $ this -> setArticleUser ( $ oUser ) ; $ oBasketPrice = $ this -> _getPriceObject ( $ oBasket -> isCalculationModeNetto ( ) ) ; // get base price $ dBasePrice = $ this -> getBasePrice ( $ dAmount ) ; $ dBasePrice = $ this -> _modifySelectListPrice ( $ dBasePrice , $ aSelList ) ; $ dBasePrice = $ this -> _preparePrice ( $ dBasePrice , $ this -> getArticleVat ( ) , $ oBasket -> isCalculationModeNetto ( ) ) ; // applying select list price // setting price $ oBasketPrice -> setPrice ( $ dBasePrice ) ; $ dVat = \ OxidEsales \ Eshop \ Core \ Registry :: get ( \ OxidEsales \ Eshop \ Application \ Model \ VatSelector :: class ) -> getBasketItemVat ( $ this , $ oBasket ) ; $ this -> _calculatePrice ( $ oBasketPrice , $ dVat ) ; // returning final price object return $ oBasketPrice ; }
Creates, calculates and returns oxPrice object for basket product.

@param float  $dAmount  Amount
@param array  $aSelList Selection list
@param object $oBasket  User shopping basket object

@return \OxidEsales\Eshop\Core\Price
Creates calculates and returns oxPrice object for basket product .