source/Application/Model/Article.php
public function getUnitPrice()
    {
        // Performance
        if (!\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('bl_perfLoadPrice') || !$this->_blLoadPrice) {
            return;
        }

        $oPrice = null;
        if ((double) $this->getUnitQuantity() && $this->oxarticles__oxunitname->value) {
            $oPrice = clone $this->getPrice();
            $oPrice->divide((double) $this->getUnitQuantity());
        }

        return $oPrice;
    }
public function getUnitPrice()
    {
        // Performance
        if (!\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('bl_perfLoadPrice') || !$this->_blLoadPrice) {
            return;
        }

        $oPrice = null;
        if ((double) $this->getUnitQuantity() && $this->oxarticles__oxunitname->value) {
            $oPrice = clone $this->getPrice();
            $oPrice->divide((double) $this->getUnitQuantity());
        }

        return $oPrice;
    }
public function getUnitPrice ( ) { // Performance if ( ! \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'bl_perfLoadPrice' ) || ! $ this -> _blLoadPrice ) { return ; } $ oPrice = null ; if ( ( double ) $ this -> getUnitQuantity ( ) && $ this -> oxarticles__oxunitname -> value ) { $ oPrice = clone $ this -> getPrice ( ) ; $ oPrice -> divide ( ( double ) $ this -> getUnitQuantity ( ) ) ; } return $ oPrice ; }
Returns price per unit

@return string
Returns price per unit