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

        // return cached result, since oPrice is created ONLY in this function [or function of EQUAL level]
        if ($this->_oTPrice !== null) {
            return $this->_oTPrice;
        }

        $oPrice = $this->_getPriceObject();

        $dBasePrice = $this->oxarticles__oxtprice->value;
        $dBasePrice = $this->_preparePrice($dBasePrice, $this->getArticleVat());

        $oPrice->setPrice($dBasePrice);

        $this->_applyVat($oPrice, $this->getArticleVat());
        $this->_applyCurrency($oPrice);

        if ($this->isParentNotBuyable()) {
            // if parent article is not buyable then compare agains min article variant price
            $oPrice2 = $this->getVarMinPrice();
        } else {
            // else compare against article price
            $oPrice2 = $this->getPrice();
        }

        if ($oPrice->getPrice() <= $oPrice2->getPrice()) {
            // if RRP price is less or equal to comparable price then return
            return;
        }

        $this->_oTPrice = $oPrice;

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

        // return cached result, since oPrice is created ONLY in this function [or function of EQUAL level]
        if ($this->_oTPrice !== null) {
            return $this->_oTPrice;
        }

        $oPrice = $this->_getPriceObject();

        $dBasePrice = $this->oxarticles__oxtprice->value;
        $dBasePrice = $this->_preparePrice($dBasePrice, $this->getArticleVat());

        $oPrice->setPrice($dBasePrice);

        $this->_applyVat($oPrice, $this->getArticleVat());
        $this->_applyCurrency($oPrice);

        if ($this->isParentNotBuyable()) {
            // if parent article is not buyable then compare agains min article variant price
            $oPrice2 = $this->getVarMinPrice();
        } else {
            // else compare against article price
            $oPrice2 = $this->getPrice();
        }

        if ($oPrice->getPrice() <= $oPrice2->getPrice()) {
            // if RRP price is less or equal to comparable price then return
            return;
        }

        $this->_oTPrice = $oPrice;

        return $this->_oTPrice;
    }
public function getTPrice ( ) { if ( ! \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'bl_perfLoadPrice' ) || ! $ this -> _blLoadPrice ) { return ; } // return cached result, since oPrice is created ONLY in this function [or function of EQUAL level] if ( $ this -> _oTPrice !== null ) { return $ this -> _oTPrice ; } $ oPrice = $ this -> _getPriceObject ( ) ; $ dBasePrice = $ this -> oxarticles__oxtprice -> value ; $ dBasePrice = $ this -> _preparePrice ( $ dBasePrice , $ this -> getArticleVat ( ) ) ; $ oPrice -> setPrice ( $ dBasePrice ) ; $ this -> _applyVat ( $ oPrice , $ this -> getArticleVat ( ) ) ; $ this -> _applyCurrency ( $ oPrice ) ; if ( $ this -> isParentNotBuyable ( ) ) { // if parent article is not buyable then compare agains min article variant price $ oPrice2 = $ this -> getVarMinPrice ( ) ; } else { // else compare against article price $ oPrice2 = $ this -> getPrice ( ) ; } if ( $ oPrice -> getPrice ( ) <= $ oPrice2 -> getPrice ( ) ) { // if RRP price is less or equal to comparable price then return return ; } $ this -> _oTPrice = $ oPrice ; return $ this -> _oTPrice ; }
Returns T price

@return \OxidEsales\Eshop\Core\Price
Returns T price