fixes customer address not visible and unable to save address

This commit is contained in:
Shreesh Arora
2023-03-13 15:24:37 +05:30
parent b7be11d515
commit 8742b94fe0

View File

@@ -50,6 +50,19 @@ class AddressControllerCore extends FrontController
));
}
/**
* Initialize address controller
* @see FrontController::init()
*/
public function init()
{
parent::init();
if ($this->context->customer->id) {
$this->_address = new Address(Customer::getCustomerIdAddress($this->context->customer->id));
}
}
/**
* Start forms process
* @see FrontController::postProcess()