This commit is contained in:
paoloar77
2024-06-15 15:53:38 +02:00
parent 05e6e7113a
commit 8feca4652b

View File

@@ -223,13 +223,17 @@ function loadArticleByIdArticle($id, $checkprevendita = false)
return false; return false;
} }
$ris = 'Articles:' . PHP_EOL; $ris = 'Articles di ' . $id . ' :' . PHP_EOL;
$ris .= getarraystr($articles); // Converte solo i dati specificati in JSON $ris .= getarraystr($articles); // Converte solo i dati specificati in JSON
$product = Product::where('sku', $id)->first(); try {
$product = Product::where('sku', $id)->first();
$ris .= 'Product:' . PHP_EOL; $ris .= 'Product:' . PHP_EOL;
// $ris .= getarraystr($product); $ris .= getarraystr($product);
} catch (\Exception $e) {
$ris .= "!!! Errore loadArticleByIdArticle Product: " . $e->getMessage();
}
return $ris; return $ris;
} catch (\Exception $e) { } catch (\Exception $e) {