[*] Core: you can now associate modules to order states in order to add extra mail vars
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16618 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user