How change Prestashop Order status with php in validate order i'm
$history = new OrderHistory(); $history->id_order = (int)$order->id; $history->changeIdOrderState(27, (int)($order->id));