How to set canonical for opencart 1.5.*?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
11 views
Now the products are available at URLs:
site.ru/category/sub_catуgory/product_name
site.ru/sub_catygory/product_name
site.ru/product_name

If I put canonical, it's different in all of these pages as the current url.
Need to make it the same everywhere in the current product - site.ru/category/sub_catygory/product_name

The problem is that I don't know how to get the file catalog/controller/product/product.php
the full chain of categories in which the product is, tell me.
by | 11 views

1 Answer

0 like 0 dislike
You probably have no seo_pro naked Opencart, so in the admin product not specified main category.
Accordingly, you will not get the full path to the product, because it does not exist.

The simple solution is to put seo_pro
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Jun 2, 2019 by KiselevPD
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,649 users