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() . '
';