Skip to content

Commit

Permalink
send email on reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
creme332 committed Jul 9, 2024
1 parent 853ce5d commit 0baa826
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/controllers/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 0baa826

Please sign in to comment.