aa
This commit is contained in:
@@ -485,8 +485,8 @@ function showTest()
|
|||||||
$mystr = '*** TEST: codarticolo: ' . $codarticolo . '<br>';
|
$mystr = '*** TEST: codarticolo: ' . $codarticolo . '<br>';
|
||||||
if ($codarticolo) {
|
if ($codarticolo) {
|
||||||
try {
|
try {
|
||||||
|
$product = Product::all();
|
||||||
// $product = Product::where('sku', $codarticolo)->first();
|
// $product = Product::where('sku', $codarticolo)->first();
|
||||||
$product = WooCommerce::find('products', $codarticolo);
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$mystr .= "Errore: " . $e->getMessage() . '<br>';
|
$mystr .= "Errore: " . $e->getMessage() . '<br>';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user