<?php if (isset($page_canonical)) { ?><?php echo $page_canonical; ?><?php } ?>
<?php foreach ($links as $link) { ?>
<?php if ($link['rel'] === 'canonical' && !isset($page_canonical)) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } else { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
<?php } ?>
$this->document->addLink($this->url->link('product/product', 'product_id=' . $this->request->get['product_id']), 'canonical');
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>
$page = mysqli_query($db, "SELECT * FROM pages");
var_dump($_POST['red']);
var_dump($urll[1]);