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");