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