source/Application/Controller/FrontendController.php
public function isEnabledPrivateSales()
    {
        if ($this->_blEnabledPrivateSales === null) {
            $this->_blEnabledPrivateSales = (bool) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blPsLoginEnabled');
            if ($this->_blEnabledPrivateSales && ($canPreview = \OxidEsales\Eshop\Core\Registry::getUtils()->canPreview()) !== null) {
                $this->_blEnabledPrivateSales = !$canPreview;
            }
        }

        return $this->_blEnabledPrivateSales;
    }
public function isEnabledPrivateSales()
    {
        if ($this->_blEnabledPrivateSales === null) {
            $this->_blEnabledPrivateSales = (bool) \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blPsLoginEnabled');
            if ($this->_blEnabledPrivateSales && ($canPreview = \OxidEsales\Eshop\Core\Registry::getUtils()->canPreview()) !== null) {
                $this->_blEnabledPrivateSales = !$canPreview;
            }
        }

        return $this->_blEnabledPrivateSales;
    }
public function isEnabledPrivateSales ( ) { if ( $ this -> _blEnabledPrivateSales === null ) { $ this -> _blEnabledPrivateSales = ( bool ) \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blPsLoginEnabled' ) ; if ( $ this -> _blEnabledPrivateSales && ( $ canPreview = \ OxidEsales \ Eshop \ Core \ Registry :: getUtils ( ) -> canPreview ( ) ) !== null ) { $ this -> _blEnabledPrivateSales = ! $ canPreview ; } } return $ this -> _blEnabledPrivateSales ; }
Checks if private sales is on

@return bool
Checks if private sales is on