removed multiple address option
This commit is contained in:
committed by
Shreesh Arora
parent
b57126874c
commit
776d72a0a2
@@ -344,12 +344,24 @@ class AdminAddressesControllerCore extends AdminController
|
||||
return parent::renderForm();
|
||||
}
|
||||
|
||||
// public function postProcess()
|
||||
// {
|
||||
|
||||
// $address = new Address();
|
||||
// $this->errors = $address->validateController();
|
||||
|
||||
// return parent::postProcess();
|
||||
// }
|
||||
|
||||
public function processSave()
|
||||
{
|
||||
if (Tools::getValue('submitFormAjax')) {
|
||||
$this->redirect_after = false;
|
||||
}
|
||||
|
||||
$address = new Address();
|
||||
$this->errors = $address->validateController();
|
||||
|
||||
// Transform e-mail in id_customer for parent processing
|
||||
if (Validate::isEmail(Tools::getValue('email'))) {
|
||||
$customer = new Customer();
|
||||
|
||||
Reference in New Issue
Block a user