/** * Preprocessor for no-action ren * * @return void */ protected function doNoAction() { parent::doNoAction(); if (!\XLite\Core\Request::getInstance()->isAJAX()) { \XLite\Core\Session::getInstance()->productListURL = $this->getURL(); } }
/** * Check controller visibility * * @return boolean */ protected function isVisible() { return parent::isVisible() && 1 < $this->getCategory()->getProductsCount(); }