aa
This commit is contained in:
@@ -259,16 +259,6 @@ function loadArticleByIdArticle($sku, $checkprevendita = true)
|
||||
})
|
||||
->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);
|
||||
} catch (\Exception $e) {
|
||||
// log exception
|
||||
|
||||
Reference in New Issue
Block a user