aa
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user