From 0a8dfa73eed3e27294b622ea7ed62a3f84708ec7 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Sat, 15 Jun 2024 17:00:17 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 27c77cf3..e8784764 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -229,10 +229,11 @@ function loadArticleByIdArticle($id, $checkprevendita = false) $ris .= getarraystr($articles); // Converte solo i dati specificati in JSON try { - $product = Product::where('sku', $id)->first(); + // $product = Product::where('sku', $id)->first(); + $products = Product::all($options = ['per_page' => 100, 'page' => $page]); $ris .= 'Product:' . PHP_EOL; - $ris .= getarraystr($product); + $ris .= getarraystr($products); } catch (\Exception $e) { $ris .= "!!! Errore loadArticleByIdArticle Product: " . $e->getMessage(); }