This commit is contained in:
paoloar77
2024-05-21 00:21:57 +02:00
parent f0e7a862b3
commit fb687d0c4c

View File

@@ -259,16 +259,6 @@ function loadArticleByIdArticle($sku, $checkprevendita = true)
}) })
->get(); ->get();
if ($articles && $checkprevendita) {
$inprevendita = $articles[0]->DescrizioneStatoProdotto === 'In prevendita';
if ($inprevendita) {
// comment this line if you want to show articles in prevendita
$articles = $articles[0];
} else {
$articles = [];
}
}
return dd($articles); return dd($articles);
} catch (\Exception $e) { } catch (\Exception $e) {
// log exception // log exception