Answer the question
In order to leave comments, you need to log in
How to display canonical on all pages in oc store?
In the product.php file (in the controllers) there is the code:
$this->document->addLink($this->url->link('product/product', 'product_id=' . $this->request->get['product_id']), 'canonical');
Answer the question
In order to leave comments, you need to log in
It looks like crazy, but if someone needs to do this, then just paste the following into the head
<link href="<?php echo $_SERVER['REQUEST_URI']; ?> " rel="canonical" />
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question