// Set default values

This commit is contained in:
Damien Metzger
2013-10-24 13:54:39 +02:00
parent 4bfd8dee11
commit a1df97776a
4 changed files with 38 additions and 12 deletions
+9
View File
@@ -52,6 +52,15 @@ abstract class PaymentModuleCore extends Module
// Insert countries availability
$return = $this->addCheckboxCountryRestrictionsForModule();
if (!Configuration::get('CONF_'.strtoupper($this->name).'_FIXED'))
Configuration::updateValue('CONF_'.strtoupper($this->name).'_FIXED', '0.2');
if (!Configuration::get('CONF_'.strtoupper($this->name).'_VAR'))
Configuration::updateValue('CONF_'.strtoupper($this->name).'_VAR', '2');
if (!Configuration::get('CONF_'.strtoupper($this->name).'_FIXED_FOREIGN'))
Configuration::updateValue('CONF_'.strtoupper($this->name).'_FIXED_FOREIGN', '0.2');
if (!Configuration::get('CONF_'.strtoupper($this->name).'_VAR_FOREIGN'))
Configuration::updateValue('CONF_'.strtoupper($this->name).'_VAR_FOREIGN', '2');
return $return;
}