Add newsletter enable option in module

This commit is contained in:
Abhishek Kumar
2023-09-01 13:31:29 +05:30
parent 4464875a14
commit 22468f6c85
6 changed files with 26 additions and 4 deletions

View File

@@ -458,7 +458,7 @@ class AdminCustomersControllerCore extends AdminController
'label' => $this->l('Disabled')
)
),
'disabled' => true,
'disabled' => (bool)!Configuration::get('PS_CUSTOMER_NEWSLETTER'),
'hint' => $this->l('This customer will receive your newsletter via email.')
),
array(