This commit is contained in:
paoloar77
2024-06-15 17:00:17 +02:00
parent c90b12aef6
commit 0a8dfa73ee

View File

@@ -229,10 +229,11 @@ function loadArticleByIdArticle($id, $checkprevendita = false)
$ris .= getarraystr($articles); // Converte solo i dati specificati in JSON $ris .= getarraystr($articles); // Converte solo i dati specificati in JSON
try { 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 .= 'Product:' . PHP_EOL;
$ris .= getarraystr($product); $ris .= getarraystr($products);
} catch (\Exception $e) { } catch (\Exception $e) {
$ris .= "!!! Errore loadArticleByIdArticle Product: " . $e->getMessage(); $ris .= "!!! Errore loadArticleByIdArticle Product: " . $e->getMessage();
} }