source/Application/Model/Delivery.php
public function getDeliveryPrice($dVat = null)
    {
        if ($this->_oPrice === null) {
            // loading oxPrice object for final price calculation
            $oPrice = oxNew(\OxidEsales\Eshop\Core\Price::class);
            $oPrice->setNettoMode($this->_blDelVatOnTop);
            $oPrice->setVat($dVat);

            // if article is free shipping, price for delivery will be not calculated
            if (!$this->_blFreeShipping) {
                $oPrice->add($this->_getCostSum());
            }
            $this->setDeliveryPrice($oPrice);
        }

        return $this->_oPrice;
    }
public function getDeliveryPrice($dVat = null)
    {
        if ($this->_oPrice === null) {
            // loading oxPrice object for final price calculation
            $oPrice = oxNew(\OxidEsales\Eshop\Core\Price::class);
            $oPrice->setNettoMode($this->_blDelVatOnTop);
            $oPrice->setVat($dVat);

            // if article is free shipping, price for delivery will be not calculated
            if (!$this->_blFreeShipping) {
                $oPrice->add($this->_getCostSum());
            }
            $this->setDeliveryPrice($oPrice);
        }

        return $this->_oPrice;
    }
public function getDeliveryPrice ( $ dVat = null ) { if ( $ this -> _oPrice === null ) { // loading oxPrice object for final price calculation $ oPrice = oxNew ( \ OxidEsales \ Eshop \ Core \ Price :: class ) ; $ oPrice -> setNettoMode ( $ this -> _blDelVatOnTop ) ; $ oPrice -> setVat ( $ dVat ) ; // if article is free shipping, price for delivery will be not calculated if ( ! $ this -> _blFreeShipping ) { $ oPrice -> add ( $ this -> _getCostSum ( ) ) ; } $ this -> setDeliveryPrice ( $ oPrice ) ; } return $ this -> _oPrice ; }
Returns oxPrice object for delivery costs

@param double $dVat delivery vat

@return \OxidEsales\Eshop\Core\Price
Returns oxPrice object for delivery costs