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