From 81b06cd2ad8e16153b166529d4bfc45373af3acb Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Wed, 14 Aug 2024 16:36:09 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index b5f742a7..011a4e6c 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -485,8 +485,8 @@ function showTest() $mystr = '*** TEST: codarticolo: ' . $codarticolo . '
'; if ($codarticolo) { try { - //$product = Product::where('sku', $codarticolo)->first(); - $product = WooCommerce::find('products', $codarticolo); + $product = Product::all(); + // $product = Product::where('sku', $codarticolo)->first(); } catch (\Exception $e) { $mystr .= "Errore: " . $e->getMessage() . '
'; }