Skip to content

Commit

Permalink
Merge pull request #7 from visualwebs/visualwebs-patch
Browse files Browse the repository at this point in the history
Update Index.php
  • Loading branch information
srenon authored Apr 15, 2022
2 parents 28065f7 + 379586d commit 8203d32
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 8203d32

Please sign in to comment.