From 4debd49e846410a1a71dc1d6e9d8bf90b9bc7300 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 29 Dec 2023 16:48:34 +0530 Subject: [PATCH] Update address details as well --- controllers/front/OrderOpcController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/front/OrderOpcController.php b/controllers/front/OrderOpcController.php index a372bd008..c18f55c4e 100644 --- a/controllers/front/OrderOpcController.php +++ b/controllers/front/OrderOpcController.php @@ -137,6 +137,8 @@ public function init() if (!count($this->errors)) { $objAddress->phone_mobile = $phoneMobile; + $objAddress->firstname = $this->context->customer->firstname; + $objAddress->lastname = $this->context->customer->lastname; if (!$objAddress->save()) { $this->errors[] = Tools::displayError('Something went wrong while saving phone number. Please try again.', false); }