This commit is contained in:
paoloar77
2024-06-15 17:15:42 +02:00
parent 2e27f28607
commit 65ffbb7076

View File

@@ -296,10 +296,11 @@ function showOrdini()
function showDettOrdini() function showDettOrdini()
{ {
$str = "Ordini"; $str = "Ordini Woocommerce:" . PHP_EOL;
try { 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 // Show the fields of the orders
foreach ($orders as $order) { foreach ($orders as $order) {