Example #1
0
 public function init()
 {
     parent::init();
     // US spelling for US stores
     if (_xls_get_conf('DEFAULT_COUNTRY') == '224') {
         $this->defaultName = "Check";
     }
 }
Example #2
0
 /**
  * We want the attributes of Cayan's config form to be part of the module's
  * configuration when the module is saved to the database for the first time.
  * This will allow an end user to checkout without problems in the event that
  * the store owner does not configure the extra options beforehand.
  *
  * @return bool|string
  */
 public function getDefaultConfiguration()
 {
     $serializedConfig = parent::getDefaultConfiguration();
     if ($serializedConfig === false) {
         return false;
     }
     $arrConfig = unserialize($serializedConfig);
     $configModel = new cayanConfigForm();
     if (!is_null($configModel)) {
         $arrConfig['customConfig'] = $configModel->attributes;
     }
     return serialize($arrConfig);
 }