From 8cb2e97302490bbda02b2fdd07c71a6db77fe7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= Date: Mon, 30 Nov 2015 13:37:15 -0300 Subject: [PATCH] colored the order status to HTML email MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit needs a patched template, eg: index 2f3107d..05248bb 100644 --- a/mails/fr/new_order.html +++ b/mails/fr/new_order.html @@ -96,11 +96,11 @@

- Détails de la commande

+ Détails de la commande

- Commande : {order_name} Date {date}

- Paiement : {payment} - Statut : {order_status} + Commande : {order_name} Date {date}
+ Paiement : {payment}
+ Statut : {order_status}
--- mailalerts.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mailalerts.php b/mailalerts.php index 5e30f1e..882c83d 100644 --- a/mailalerts.php +++ b/mailalerts.php @@ -382,6 +382,7 @@ public function hookActionValidateOrder($params) '{invoice_phone}' => $invoice->phone ? $invoice->phone : $invoice->phone_mobile, '{invoice_other}' => $invoice->other, '{order_name}' => $order->reference, + '{order_status_color}' => $order_state->color, '{order_status}' => $order_state->name, '{shop_name}' => $configuration['PS_SHOP_NAME'], '{date}' => $order_date_text,