source/Application/Model/Article.php
public function isVisible()
    {
        // admin preview mode
        if (($blCanPreview = \OxidEsales\Eshop\Core\Registry::getUtils()->canPreview()) !== null) {
            return $blCanPreview;
        }

        // active ?
        $sNow = date('Y-m-d H:i:s');
        if (!$this->oxarticles__oxactive->value &&
            ($this->oxarticles__oxactivefrom->value > $sNow ||
             $this->oxarticles__oxactiveto->value < $sNow
            )
        ) {
            return false;
        }

        // stock flags
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blUseStock') && $this->oxarticles__oxstockflag->value == 2) {
            $iOnStock = $this->oxarticles__oxstock->value + $this->oxarticles__oxvarstock->value;
            if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blPsBasketReservationEnabled')) {
                $iOnStock += $this->getSession()->getBasketReservations()->getReservedAmount($this->getId());
            }
            if ($iOnStock <= 0) {
                return false;
            }
        }

        return true;
    }
public function isVisible()
    {
        // admin preview mode
        if (($blCanPreview = \OxidEsales\Eshop\Core\Registry::getUtils()->canPreview()) !== null) {
            return $blCanPreview;
        }

        // active ?
        $sNow = date('Y-m-d H:i:s');
        if (!$this->oxarticles__oxactive->value &&
            ($this->oxarticles__oxactivefrom->value > $sNow ||
             $this->oxarticles__oxactiveto->value < $sNow
            )
        ) {
            return false;
        }

        // stock flags
        if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blUseStock') && $this->oxarticles__oxstockflag->value == 2) {
            $iOnStock = $this->oxarticles__oxstock->value + $this->oxarticles__oxvarstock->value;
            if (\OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('blPsBasketReservationEnabled')) {
                $iOnStock += $this->getSession()->getBasketReservations()->getReservedAmount($this->getId());
            }
            if ($iOnStock <= 0) {
                return false;
            }
        }

        return true;
    }
public function isVisible ( ) { // admin preview mode if ( ( $ blCanPreview = \ OxidEsales \ Eshop \ Core \ Registry :: getUtils ( ) -> canPreview ( ) ) !== null ) { return $ blCanPreview ; } // active ? $ sNow = date ( 'Y-m-d H:i:s' ) ; if ( ! $ this -> oxarticles__oxactive -> value && ( $ this -> oxarticles__oxactivefrom -> value > $ sNow || $ this -> oxarticles__oxactiveto -> value < $ sNow ) ) { return false ; } // stock flags if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blUseStock' ) && $ this -> oxarticles__oxstockflag -> value == 2 ) { $ iOnStock = $ this -> oxarticles__oxstock -> value + $ this -> oxarticles__oxvarstock -> value ; if ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'blPsBasketReservationEnabled' ) ) { $ iOnStock += $ this -> getSession ( ) -> getBasketReservations ( ) -> getReservedAmount ( $ this -> getId ( ) ) ; } if ( $ iOnStock <= 0 ) { return false ; } } return true ; }
Checks if article has visible status. Returns TRUE if its visible

@return bool
Checks if article has visible status . Returns TRUE if its visible