/** * Runs additional checks for article. * * @param oxUtils $myUtils General utils * @param oxConfig $myConfig Main shop configuration */ protected function _additionalChecksForArticle($myUtils, $myConfig) { $blContinue = true; if (!$this->_oProduct->isVisible()) { $blContinue = false; } elseif ($this->_oProduct->oxarticles__oxparentid->value) { $oParent = $this->_getParentProduct($this->_oProduct->oxarticles__oxparentid->value); if (!$oParent || !$oParent->isVisible()) { $blContinue = false; } } if (!$blContinue) { $myUtils->redirect($myConfig->getShopHomeUrl()); $myUtils->showMessageAndExit(''); } $this->_processProduct($this->_oProduct); $this->_blIsInitialized = true; }