Programmatically change order status to accepted

If  you  wish  to  change  an  Order Status  to  ” Payment  Accepted ”   you can use  this  code:     $id_order=Tools::getValue(‘id_order’); $order=new Order($id_order); /* here we validate the order*/ $history = new OrderHistory(); $history->id_order = (int)$order->id; $history->changeIdOrderState(2, (int)($order->id)); //order status=2… Read More