Example #1
0
 public function __construct()
 {
     if ($this->getProfile()) {
         $this->tabs['securesubmit_credit_cards'] = array('title' => 'SecureSubmit credit cards', 'template' => 'modules/Heartland/Securesubmit/account/securesubmit_credit_cards.tpl');
     }
     parent::__construct();
 }
Example #2
0
 /**
  * Returns an array(tab) descriptions
  *
  * @return array
  */
 protected function getTabs()
 {
     if (!isset($this->processedTabs) && $this->getOrdersWithFiles()) {
         $this->tabs['ordered_files'] = array('title' => 'Ordered files', 'template' => 'modules/CDev/Egoods/files.tpl');
     }
     parent::getTabs();
     return $this->processedTabs;
 }
Example #3
0
 /**
  * Returns an array(tab) descriptions
  *
  * @return array
  */
 protected function getTabs()
 {
     $tabs = parent::getTabs();
     if (\XLite\Core\Config::getInstance()->CDev->Catalog->disable_checkout) {
         if (isset($tabs['order_list'])) {
             unset($tabs['order_list']);
         }
     }
     return $tabs;
 }
Example #4
0
 /**
  * init
  *
  * @return void
  */
 public function __construct()
 {
     $cnd = new \XLite\Core\CommonCell();
     $cnd->class = 'Module\\CDev\\XPaymentsConnector\\Model\\Payment\\Processor\\SavedCard';
     $saveCardsMethods = \XLite\Core\Database::getRepo('XLite\\Model\\Payment\\Method')->search($cnd);
     if ($saveCardsMethods) {
         $found = false;
         foreach ($saveCardsMethods as $pm) {
             if ($pm->isEnabled()) {
                 $found = true;
                 break;
             }
         }
         if ($found) {
             $this->tabs['saved_cards'] = array('title' => 'Saved credit cards', 'template' => 'modules/CDev/XPaymentsConnector/account/saved_cards.tpl');
         }
     }
     parent::__construct();
 }
Example #5
0
 /**
  * Returns the list of targets where this widget is available
  *
  * @return void
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'pin_codes';
     return $list;
 }