From e5affda3c0372b6035265fa947ee19522324eec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20Qu=E1=BB=91c=20=C4=90=E1=BA=A1t?= Date: Wed, 29 Aug 2018 15:59:55 +0200 Subject: [PATCH] Fix double email --- lemonway/controllers/front/validation.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lemonway/controllers/front/validation.php b/lemonway/controllers/front/validation.php index 9c11585..8c5c4d9 100644 --- a/lemonway/controllers/front/validation.php +++ b/lemonway/controllers/front/validation.php @@ -228,16 +228,6 @@ public function postProcess() } } - try { - $history = new OrderHistory(); - $history->id_order = (int)$order_id; - - $history->changeIdOrderState($id_order_state, $order, false); - $history->save(); - } catch (Exception $e) { - PrestaShopLogger::addLog($e->getMessage(), 4); - } - if ($methodInstance->isSplitPayment()) { /* @var $invoiceCollection PrestaShopCollectionCore */ $invoiceCollection = $order->getInvoicesCollection(); @@ -266,9 +256,6 @@ public function postProcess() } } } - - $templateVars = array(); - $history->sendEmail($order, $templateVars); } else { //@TODO throw error for not http method supported die("HTTP Method not Allowed");