diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index d4cf60bb..5e553cc3 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -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