[-] MO : #PSCFV-3550 - Module Check : Display warning only if the module is active
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16742 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
8ba7ebd80b
commit
a98846bc57
1 file changed
+2
-2
@@ -59,9 +59,9 @@ class Cheque extends PaymentModule
|
|||||||
$this->description = $this->l('Module for accepting payments by check.');
|
$this->description = $this->l('Module for accepting payments by check.');
|
||||||
$this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
|
$this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
|
||||||
|
|
||||||
if (!isset($this->chequeName) || !isset($this->address) || empty($this->chequeName) || empty($this->address))
|
if ($this->active && (!isset($this->chequeName) || !isset($this->address) || empty($this->chequeName) || empty($this->address)))
|
||||||
$this->warning = $this->l('\'To the order of\' and address must be configured in order to use this module correctly.');
|
$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)))
|
if ($this->active && !count(Currency::checkPaymentCurrencies($this->id)))
|
||||||
$this->warning = $this->l('No currency set for this module');
|
$this->warning = $this->l('No currency set for this module');
|
||||||
|
|
||||||
$this->extra_mail_vars = array(
|
$this->extra_mail_vars = array(
|
||||||
|
|||||||
Reference in new issue
Block a user