[+] BO : Adding warnings when merchant does not enable the configurations needed to use modules API
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12562 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -58,7 +58,7 @@ class Cheque extends PaymentModule
|
||||
$this->description = $this->l('Module for accepting payments by check.');
|
||||
$this->confirmUninstall = $this->l('Are you sure you want to delete your details ?');
|
||||
|
||||
if (!isset($this->chequeName) OR !isset($this->address))
|
||||
if (!isset($this->chequeName) OR !isset($this->address) OR empty($this->chequeName) OR empty($this->address))
|
||||
$this->warning = $this->l('\'To the order of\' and address must be configured in order to use this module correctly.');
|
||||
if (!sizeof(Currency::checkPaymentCurrencies($this->id)))
|
||||
$this->warning = $this->l('No currency set for this module');
|
||||
|
||||
Reference in New Issue
Block a user