From 8742b94fe0abbb95d78d1d48b73dbeea650a553d Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Mon, 13 Mar 2023 15:24:37 +0530 Subject: [PATCH] fixes customer address not visible and unable to save address --- controllers/front/AddressController.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/controllers/front/AddressController.php b/controllers/front/AddressController.php index 080d96f83..e5dd8801c 100644 --- a/controllers/front/AddressController.php +++ b/controllers/front/AddressController.php @@ -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()