From 0baa82622f20c730f30fcfa5c7ff6c9517117af2 Mon Sep 17 00:00:00 2001 From: creme332 <65414576+creme332@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:26:20 +0400 Subject: [PATCH] send email on reorder --- src/controllers/Profile.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controllers/Profile.php b/src/controllers/Profile.php index e518acb..0d889ce 100644 --- a/src/controllers/Profile.php +++ b/src/controllers/Profile.php @@ -104,6 +104,9 @@ private function displayProfileDetails(Client $client, string $password = "", st ); } + /** + * @throws Exception + */ public function reorderOrder(): void { $order_id = (int)($_POST['order_id'] ?? -1); @@ -127,6 +130,8 @@ public function reorderOrder(): void } catch (Exception $e) { $this->view_data['order_action_error'] = $e->getMessage(); } + + $this->signed_client->sendOrderConfirmationEmail($new_order); } public function cancelOrder(): void