removed multiple address option

This commit is contained in:
shreesh arora
2022-01-14 00:40:41 +05:30
committed by Shreesh Arora
parent b57126874c
commit 776d72a0a2
7 changed files with 53 additions and 10 deletions

View File

@@ -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();