PRO TIPS (FREE) – ADDING CANONICAL URLS TO YOUR OPENCART PAGES

PRO TIPS (FREE) – ADDING CANONICAL URLS TO YOUR OPENCART PAGES

Are you running a website with opencart? Do know about why canonical tag required for your website? Well then, below you can find easy solutions for your requirement.

OpenCart is an open source e-commerce software used to build online stores.Despite its popularity, some of its missing features are glaring, especially when it comes to SEO.  OpenCart does implement the rel=”canonical” tag on its product pages. However, there’s no canonical tag on any of the category pages or the all-important homepage. If you install OpenCart without fixing this problem, a Google site:yourdomain.com search will show a million variations of each category diluting the results, “link juice”, and earning relegation to the “See this search with duplicate pages”.

What Is rel=”canonical” tag and Why should required for website pages.

Read more from https://support.google.com/webmasters/answer/139066?hl=en&rd=1

Find below relatively easy solution,

1) Edit your catalog/controller/product/category.php file

2) Find this line:

if ($category_info) {

3) Immediately after it, add the following lines:

$can_url=$this->url->link(“product/category”,”path=”.$this->request->get[‘path’]); $this->document->addLink($can_url,”canonical”);

4) Now edit catalog/controllers/common/home.php

5) Find this line:

$this->document->setDescription($this->config->get(‘config_meta_description’));

6) Immediately after it add:

$can_url=$this->url->link(‘common/home’); $can_url=str_replace(‘index.php?route=common/home’, ”, $can_url); $this->document->addLink($can_url,’canonical’);

That’s It!!!You have canonical urls!

Follow us on

Related Posts


solution_remote_assist

With Remote Assistance Platform, you can commit to the quickest service call response time.

August 16, 2021

Our remote assistance platform based on Augmented Reality technology offers mobility and is developed to boost real-time remote access and collaborative processes across a variety of industrial sectors, ranging from energy to manufacturing, medical to logistics and services. Companies who utilise Remote Assistance see higher operational efficiency, enhanced interaction, near-zero mistakes, greater efficacy of skills […]

Worker-Using-Remote-Assist-App_rev2

The approach to service delivery is here to stay, and remote assistance platform will play an important part.

August 2, 2021

After witnessing the early affects of the expanding epidemic, Evoort could see an immediate need to use remote assistance to help service customers and support both field and production operations. The widespread use of AR/VR technologies in manufacturing will have a significant influence on how teams interact. Every day, new and fascinating use cases emerge, […]

How Predictive Maintenance Moves Forward the Manufacturing Industry

July 16, 2021

Equipment outage not only decreases production but also has an impact on ROI in your production plant. Any unexpected stoppage can result in setbacks such as higher repair costs, supply shortages, and lower value in the manufacturing plant. It also has a detrimental influence on OEE (Overall Equipment Effectiveness). Predictive maintenance and digital transformation solutions, […]