From 7c246547417e4600a9567063f532081d626fe21b Mon Sep 17 00:00:00 2001 From: jps Date: Tue, 16 Dec 2025 15:29:01 +0100 Subject: [PATCH] ajout email et tel ds email error --- templates/email/api-error.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/email/api-error.php b/templates/email/api-error.php index 058ed62..a9f315b 100644 --- a/templates/email/api-error.php +++ b/templates/email/api-error.php @@ -30,6 +30,8 @@ $site_url = home_url(); $order = wc_get_order($order_id); $order_total = ''; $customer_name = ''; +$customer_email = ''; +$customer_phone = ''; if ($order instanceof WC_Order) { $order_total = $order->get_formatted_order_total(); $first_name = $order->get_billing_first_name(); @@ -37,6 +39,8 @@ if ($order instanceof WC_Order) { if (!empty($first_name) || !empty($last_name)) { $customer_name = trim($first_name . ' ' . $last_name); } + $customer_email = $order->get_billing_email(); + $customer_phone = $order->get_billing_phone(); } ?> @@ -171,6 +175,14 @@ if ($order instanceof WC_Order) {
+ + +
+ + + +
+