diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 89f0ca45..4fb6f38a 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -299,6 +299,7 @@ function showDettOrdini() $str = "Ordini Woocommerce:" . PHP_EOL; try { + $orders = Order::all(); // $orders = Order::orderBy('DataOra', 'desc')->take(2)->get(); /* $orders = Order::take(2)->get(); @@ -311,7 +312,7 @@ function showDettOrdini() //$str .= getvalstr("Totale", $order->Totale); }*/ } catch (\Exception $e) { - return "Errore: " . $e->getMessage(); + return "Errore showDettOrdini: " . $e->getMessage(); } return $str;