corretto, era il DB che avevo cancellato l'utente dove era salvata la chiave...
This commit is contained in:
@@ -239,11 +239,10 @@ function loadArticleByIdArticle($id, $checkprevendita = false)
|
||||
$ris .= getarraystr($articles); // Converte solo i dati specificati in JSON
|
||||
|
||||
try {
|
||||
// $product = Product::where('sku', $id)->first();
|
||||
$products = Product::all($options = ['per_page' => 100, 'page' => 1]);
|
||||
$product = Product::where('sku', $id)->first();
|
||||
|
||||
$ris .= 'Product:' . PHP_EOL;
|
||||
//$ris .= getarraystr($products);
|
||||
$ris .= getarraystr($product);
|
||||
} catch (\Exception $e) {
|
||||
$ris .= "!!! Errore loadArticleByIdArticle Product: " . $e->getMessage();
|
||||
}
|
||||
@@ -300,9 +299,6 @@ function showDettOrdini()
|
||||
|
||||
try {
|
||||
$orders = Order::all();
|
||||
// $orders = Order::orderBy('DataOra', 'desc')->take(2)->get();
|
||||
/*
|
||||
$orders = Order::take(2)->get();
|
||||
|
||||
// Show the fields of the orders
|
||||
foreach ($orders as $order) {
|
||||
@@ -310,7 +306,7 @@ function showDettOrdini()
|
||||
$str .= getvalstr("Id", $order->id);
|
||||
//$str .= getvalstr("DataOra", $order->DataOra);
|
||||
//$str .= getvalstr("Totale", $order->Totale);
|
||||
}*/
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
return "Errore showDettOrdini: " . $e->getMessage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user