This commit is contained in:
paoloar77
2024-05-20 23:52:36 +02:00
parent efd137697f
commit d878174cae

View File

@@ -260,7 +260,7 @@ function loadArticleByIdArticle($sku, $checkprevendita = true)
->where('T_WEB_Articoli.IdArticolo', $sku) ->where('T_WEB_Articoli.IdArticolo', $sku)
->get(); ->get();
if ($checkprevendita) { if ($articles && $checkprevendita) {
$inprevendita = $articles[0]->DescrizioneStatoProdotto === 'In prevendita'; $inprevendita = $articles[0]->DescrizioneStatoProdotto === 'In prevendita';
if ($inprevendita) { if ($inprevendita) {
// comment this line if you want to show articles in prevendita // comment this line if you want to show articles in prevendita