source/Application/Model/Article.php
protected function _getVarMinPrice()
    {
        if ($this->_dVarMinPrice === null) {
            $dPrice = $this->_getShopVarMinPrice();

            if (is_null($dPrice)) {
                $sPriceSuffix = $this->_getUserPriceSufix();
                if ($sPriceSuffix === '') {
                    $dPrice = $this->oxarticles__oxvarminprice->value;
                } else {
                    $sSql = 'SELECT ';
                    if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blOverrideZeroABCPrices')) {
                        $sSql .= 'MIN( IF(`oxprice' . $sPriceSuffix . '` = 0, `oxprice`, `oxprice' . $sPriceSuffix . '`) ) AS `varminprice` ';
                    } else {
                        $sSql .= 'MIN(`oxprice' . $sPriceSuffix . '`) AS `varminprice` ';
                    }

                    $sSql .= ' FROM ' . $this->getViewName(true) . '
                    WHERE ' . $this->getSqlActiveSnippet(true) . '
                        AND ( `oxparentid` = ' . \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quote($this->getId()) . ' )';

                    $dPrice = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->getOne($sSql);
                }
            }

            $this->_dVarMinPrice = $dPrice;
        }

        return $this->_dVarMinPrice;
    }
protected function _getVarMinPrice()
    {
        if ($this->_dVarMinPrice === null) {
            $dPrice = $this->_getShopVarMinPrice();

            if (is_null($dPrice)) {
                $sPriceSuffix = $this->_getUserPriceSufix();
                if ($sPriceSuffix === '') {
                    $dPrice = $this->oxarticles__oxvarminprice->value;
                } else {
                    $sSql = 'SELECT ';
                    if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blOverrideZeroABCPrices')) {
                        $sSql .= 'MIN( IF(`oxprice' . $sPriceSuffix . '` = 0, `oxprice`, `oxprice' . $sPriceSuffix . '`) ) AS `varminprice` ';
                    } else {
                        $sSql .= 'MIN(`oxprice' . $sPriceSuffix . '`) AS `varminprice` ';
                    }

                    $sSql .= ' FROM ' . $this->getViewName(true) . '
                    WHERE ' . $this->getSqlActiveSnippet(true) . '
                        AND ( `oxparentid` = ' . \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->quote($this->getId()) . ' )';

                    $dPrice = \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->getOne($sSql);
                }
            }

            $this->_dVarMinPrice = $dPrice;
        }

        return $this->_dVarMinPrice;
    }
protected function _getVarMinPrice ( ) { if ( $ this -> _dVarMinPrice === null ) { $ dPrice = $ this -> _getShopVarMinPrice ( ) ; if ( is_null ( $ dPrice ) ) { $ sPriceSuffix = $ this -> _getUserPriceSufix ( ) ; if ( $ sPriceSuffix === '' ) { $ dPrice = $ this -> oxarticles__oxvarminprice -> value ; } else { $ sSql = 'SELECT ' ; if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blOverrideZeroABCPrices' ) ) { $ sSql .= 'MIN( IF(`oxprice' . $ sPriceSuffix . '` = 0, `oxprice`, `oxprice' . $ sPriceSuffix . '`) ) AS `varminprice` ' ; } else { $ sSql .= 'MIN(`oxprice' . $ sPriceSuffix . '`) AS `varminprice` ' ; } $ sSql .= ' FROM ' . $ this -> getViewName ( true ) . '
                    WHERE ' . $ this -> getSqlActiveSnippet ( true ) . '
                        AND ( `oxparentid` = ' . \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> quote ( $ this -> getId ( ) ) . ' )' ; $ dPrice = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> getOne ( $ sSql ) ; } } $ this -> _dVarMinPrice = $ dPrice ; } return $ this -> _dVarMinPrice ; }
Return variant min price

@return null
Return variant min price