/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { return parent::checkAccess() && $this->getProductVariant() && $this->getPages(); }
/** * Check if current page is accessible * * @return boolean */ public function checkAccess() { return parent::checkAccess() && ($this->getProductClass() || !\XLite\Core\Request::getInstance()->product_class_id); }