From 65ffbb70767d6e601e9f27f531f5d44c91e08bf5 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Sat, 15 Jun 2024 17:15:42 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 70faeb73..1e2fe354 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -296,10 +296,11 @@ function showOrdini() function showDettOrdini() { - $str = "Ordini"; + $str = "Ordini Woocommerce:" . PHP_EOL; try { - $orders = Order::orderBy('DataOra', 'desc')->take(2)->get(); + // $orders = Order::orderBy('DataOra', 'desc')->take(2)->get(); + $orders = Order::take(2)->get(); // Show the fields of the orders foreach ($orders as $order) {