permalink

This commit is contained in:
paoloar77
2024-11-27 12:38:26 +01:00
parent 371f10b8bb
commit 39886b8131

View File

@@ -634,8 +634,17 @@ function showOrdiniWeb()
foreach ($orders as $order) {
$product = Product::where('sku', $order->CodArticoloGM)->first();
if (isset($product['permalink'])) {
$permalink = "<a href='" . $product['permalink'] . "' target='_blank'>";
$finelink = "</a>";
} else {
$mylink = "";
$finelink = "";
}
if ($product)
$titolo = "<a href='" . $product['permalink'] . "' target='_blank'><span style='font-weigth: bold;'>" . $product['name'] . "</span></a>";
$titolo = $mylink . "<span style='font-weigth: bold;'>" . $product['name'] . "</span>" . $finelink;
else
$titolo = "";
@@ -1977,7 +1986,8 @@ function setProductFromGM($article, $initlog, ProductLogger &$passproductLogger)
break;
}
} else {
// ESISTE GIA' IL LIBRO
$data1 = [
'regular_price' => $article->PrezzoIvato,