Skip to content

Commit

Permalink
Update Index.php
Browse files Browse the repository at this point in the history
Save changes to the order addresses
  • Loading branch information
visualwebs authored Aug 17, 2021
1 parent e3fd4e9 commit 379586d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Controller/Adminhtml/Edit/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ public function execute()
$order->addStatusHistoryComment($comment);
$order->setCustomerEmail($emailAddress);
$this->orderRepository->save($order);

foreach ($order->getAddressesCollection() as $address)
{
$address->setEmail($emailAddress)->save();
}
}

//if update customer email
Expand Down

0 comments on commit 379586d

Please sign in to comment.