This commit is contained in:
paoloar77
2024-05-22 14:29:58 +02:00
parent 309892c7fb
commit fd4daa0785
3 changed files with 22 additions and 13 deletions

View File

@@ -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 {