This commit is contained in:
paoloar77
2024-08-14 16:36:09 +02:00
parent 6912ff7ea3
commit 81b06cd2ad

View File

@@ -485,8 +485,8 @@ function showTest()
$mystr = '*** TEST: codarticolo: ' . $codarticolo . '<br>';
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() . '<br>';
}