permalink
This commit is contained in:
@@ -634,8 +634,17 @@ function showOrdiniWeb()
|
|||||||
foreach ($orders as $order) {
|
foreach ($orders as $order) {
|
||||||
$product = Product::where('sku', $order->CodArticoloGM)->first();
|
$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)
|
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
|
else
|
||||||
$titolo = "";
|
$titolo = "";
|
||||||
|
|
||||||
@@ -1977,7 +1986,8 @@ function setProductFromGM($article, $initlog, ProductLogger &$passproductLogger)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// ESISTE GIA' IL LIBRO
|
||||||
|
|
||||||
$data1 = [
|
$data1 = [
|
||||||
|
|
||||||
'regular_price' => $article->PrezzoIvato,
|
'regular_price' => $article->PrezzoIvato,
|
||||||
|
|||||||
Reference in New Issue
Block a user