[*] Core: you can now associate modules to order states in order to add extra mail vars

This commit is contained in:
rGaillard
2012-07-31 09:18:41 +00:00
parent e113d97e60
commit 98edaa8979
9 changed files with 41 additions and 18 deletions
+7
View File
@@ -35,6 +35,7 @@ class Cheque extends PaymentModule
public $chequeName;
public $address;
public $extra_mail_vars;
public function __construct()
{
@@ -62,6 +63,12 @@ class Cheque extends PaymentModule
$this->warning = $this->l('\'To the order of\' and address must be configured in order to use this module correctly.');
if (!count(Currency::checkPaymentCurrencies($this->id)))
$this->warning = $this->l('No currency set for this module');
$this->extra_mail_vars = array(
'{cheque_name}' => Configuration::get('CHEQUE_NAME'),
'{cheque_address}' => Configuration::get('CHEQUE_ADDRESS'),
'{cheque_address_html}' => str_replace("\n", '<br />', Configuration::get('CHEQUE_ADDRESS'))
);
}
public function install()