From 39886b8131a3e3379623b713c909c4bc7f8422ec Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Wed, 27 Nov 2024 12:38:26 +0100 Subject: [PATCH] permalink --- app/CustomFuncPao.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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,