aa
This commit is contained in:
@@ -478,7 +478,7 @@ function showTest()
|
|||||||
{
|
{
|
||||||
$codarticolo = "16670";
|
$codarticolo = "16670";
|
||||||
|
|
||||||
$mystr = '*** TEST: codarticolo: ' . $codarticolo;
|
$mystr = '*** TEST: codarticolo: ' . $codarticolo . PHP_EOL;
|
||||||
if ($codarticolo) {
|
if ($codarticolo) {
|
||||||
try {
|
try {
|
||||||
$product = Product::where('sku', $codarticolo)->first();
|
$product = Product::where('sku', $codarticolo)->first();
|
||||||
@@ -486,7 +486,8 @@ function showTest()
|
|||||||
$mystr .= "Errore: " . $e->getMessage();
|
$mystr .= "Errore: " . $e->getMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
$mystr .= getarraystr($product);
|
if (isset($product) && isset($product['id']))
|
||||||
|
$mystr += $product['id'] . ' ';
|
||||||
|
|
||||||
}
|
}
|
||||||
return $mystr;
|
return $mystr;
|
||||||
|
|||||||
Reference in New Issue
Block a user