source/Application/Model/Article.php
protected function _onChangeStockResetCount($sOxid)
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        if ($myConfig->getConfigParam('blUseStock') && $this->oxarticles__oxstockflag->value == 2 &&
            ($this->oxarticles__oxstock->value + $this->oxarticles__oxvarstock->value) <= 0
        ) {
            $this->_onChangeResetCounts(
                $sOxid,
                $this->oxarticles__oxvendorid->value,
                $this->oxarticles__oxmanufacturerid->value
            );
        }
    }
protected function _onChangeStockResetCount($sOxid)
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        if ($myConfig->getConfigParam('blUseStock') && $this->oxarticles__oxstockflag->value == 2 &&
            ($this->oxarticles__oxstock->value + $this->oxarticles__oxvarstock->value) <= 0
        ) {
            $this->_onChangeResetCounts(
                $sOxid,
                $this->oxarticles__oxvendorid->value,
                $this->oxarticles__oxmanufacturerid->value
            );
        }
    }
protected function _onChangeStockResetCount ( $ sOxid ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; if ( $ myConfig -> getConfigParam ( 'blUseStock' ) && $ this -> oxarticles__oxstockflag -> value == 2 && ( $ this -> oxarticles__oxstock -> value + $ this -> oxarticles__oxvarstock -> value ) <= 0 ) { $ this -> _onChangeResetCounts ( $ sOxid , $ this -> oxarticles__oxvendorid -> value , $ this -> oxarticles__oxmanufacturerid -> value ) ; } }
Resets article count cache when stock value is zero and article goes offline.

@param string $sOxid product id
Resets article count cache when stock value is zero and article goes offline .