Exemplo n.º 1
0
 /**
  * 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();
     }
 }
Exemplo n.º 2
0
 /**
  * Initialization
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     if (\XLite\Module\CDev\DrupalConnector\Handler::getInstance()->checkCurrentCMS() && static::isPortal()) {
         drupal_set_title(t('Orders'));
     }
 }