@domenico.weimann
The canonical tag is used to specify the preferred URL for a page when there are multiple URLs with the same content. To add the canonical tag to OpenCart pages, you need to modify the code of your theme. Here's how you can do it:
1
|
<link rel="canonical" href="<?php echo $canonical; ?>"> |
1 2 3 |
<?php $canonical = (isset($this->request->get['route'])) ? $this->url->link($this->request->get['route']) : ''; ?> |
Note: Make sure to backup your theme files before making any changes to them, in case anything goes wrong.