From fb687d0c4ce77689a57fcdbe62d019babdd73446 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Tue, 21 May 2024 00:21:57 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 10 ---------- 1 file changed, 10 deletions(-) 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