/** * Handles the request. * Parses the request variables if necessary. Attempts to call the specified action function * * @return void */ public function handleRequest() { if (\XLite\Core\Config::getInstance()->CDev->Catalog->disable_checkout) { $this->redirect($this->buildUrl('profile')); } else { parent::handleRequest(); } }
/** * Initialization * * @return void */ public function init() { parent::init(); if (\XLite\Module\CDev\DrupalConnector\Handler::getInstance()->checkCurrentCMS() && static::isPortal()) { drupal_set_title(t('Orders')); } }