diff --git a/classes/PaymentModule.php b/classes/PaymentModule.php index 23acd57c7..4d99e7df7 100644 --- a/classes/PaymentModule.php +++ b/classes/PaymentModule.php @@ -525,7 +525,7 @@ abstract class PaymentModuleCore extends Module $msg->id_cart = (int)$id_cart; $msg->id_customer = (int)($order->id_customer); $msg->id_order = (int)$order->id; - $msg->private = 1; + $msg->private = 0; $msg->add(); } } diff --git a/controllers/admin/AdminOrdersController.php b/controllers/admin/AdminOrdersController.php index e9a9783df..eac62c06d 100644 --- a/controllers/admin/AdminOrdersController.php +++ b/controllers/admin/AdminOrdersController.php @@ -1885,7 +1885,7 @@ class AdminOrdersControllerCore extends AdminController (int)$order->id_shop ); } - $this->errors[] = Tools::displayError('An error occurred while sending an email to the customer.'); + Tools::dieOrLog(Tools::displayError('An error occurred while sending an email to the customer.'),false); } } } else {