diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index c5d740a4..5fa9a73b 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -634,8 +634,17 @@ function showOrdiniWeb() foreach ($orders as $order) { $product = Product::where('sku', $order->CodArticoloGM)->first(); + if (isset($product['permalink'])) { + $permalink = ""; + $finelink = ""; + } else { + $mylink = ""; + $finelink = ""; + } + + if ($product) - $titolo = "" . $product['name'] . ""; + $titolo = $mylink . "" . $product['name'] . "" . $finelink; else $titolo = ""; @@ -1977,7 +1986,8 @@ function setProductFromGM($article, $initlog, ProductLogger &$passproductLogger) break; } } else { - + // ESISTE GIA' IL LIBRO + $data1 = [ 'regular_price' => $article->PrezzoIvato,