Skip to content

Commit

Permalink
Update address details as well
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-webkul committed Dec 29, 2023
1 parent c505859 commit 4debd49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/front/OrderOpcController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4debd49

Please sign in to comment.