aa
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use App\Article;
|
||||
use App\Orderdetail;
|
||||
use Codexshaper\WooCommerce\Facades\Order;
|
||||
use Codexshaper\WooCommerce\Facades\Product;
|
||||
use Codexshaper\WooCommerce\Facades\Variation;
|
||||
@@ -241,6 +242,29 @@ function showOrdini()
|
||||
$str = "Ordini";
|
||||
|
||||
|
||||
$orders = Orderdetail::take(2)->get();
|
||||
|
||||
try {
|
||||
|
||||
// Show the fields of the orders
|
||||
foreach ($orders as $order) {
|
||||
$str .= "Ordine: ";
|
||||
$str .= getvalstr("Id", $order->id);
|
||||
//$str .= getvalstr("DataOra", $order->DataOra);
|
||||
//$str .= getvalstr("Totale", $order->Totale);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
return "Errore: " . $e->getMessage();
|
||||
}
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
function showOrdini1()
|
||||
{
|
||||
$str = "Ordini";
|
||||
|
||||
|
||||
$orders = Order::orderBy('DataOra', 'desc')->take(2)->get();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user