ordini
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use App\Article;
|
||||
use Codexshaper\WooCommerce\Facades\Order;
|
||||
use Codexshaper\WooCommerce\Facades\Product;
|
||||
use Codexshaper\WooCommerce\Facades\Variation;
|
||||
|
||||
@@ -236,6 +237,24 @@ function loadArticleByIdArticle($id, $checkprevendita = false)
|
||||
}
|
||||
}
|
||||
|
||||
function showOrdini()
|
||||
{
|
||||
$orders = Order::all();
|
||||
|
||||
$str = "";
|
||||
|
||||
// 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);
|
||||
}
|
||||
|
||||
return $str;
|
||||
|
||||
}
|
||||
|
||||
function libriInPrevendita()
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user