This commit is contained in:
paoloar77
2024-06-13 09:13:17 +02:00
parent 79ae9c1573
commit 04b485d19c

View File

@@ -6,6 +6,7 @@ use App\Orderdetail;
use Codexshaper\WooCommerce\Facades\Order;
use Codexshaper\WooCommerce\Facades\Product;
use Codexshaper\WooCommerce\Facades\Variation;
use Illuminate\Support\Facades\Schema;
function showarray($array)
{
@@ -244,7 +245,9 @@ function showOrdini()
try {
$orders = Orderdetail::orderBy('Codice', 'desc')
$str = Schema::getColumnListing('orders');
/*$orders = Orderdetail::orderBy('Codice', 'desc')
->take(10)
->get();
@@ -256,7 +259,7 @@ function showOrdini()
$str .= getvalstr("Totale", $order->Totale);
$str .= '<br>';
}
}*/
} catch (\Exception $e) {
return "Errore: " . $e->getMessage();
}