Add meta tags for system pages opencart
Add keywords and meta description for stock pages, manufacturers, contacts, and others ...
Creation, development, manufacturing sites | WEB-STYDIA.COM

When developing an online store on the opencart engine, you sometimes need to add meta tags for standard store pages, such as for example : contact page, stock page, site map, manufacturers ...

By default, the meta description and keywords are not displayed in opencart on these pages, and in order to fix it we need to correct just two files.

You can certainly buy a module for opencart which adds the ability to edit these pages from the admin panel, but I think this is superfluous, because you just need to add two lines to the page controllers files and to the language files.

The common thing is how to add Meta Description and Meta Keywords for some pages in opencart:

Let's add meta tags to the example of the contacts page, for all other pages we add everything by analogy.

1. Open the controller /catalog/controller/information/contact.php

And after:

Add two lines:

All the controller can be closed. Then open the language file /catalog/language/russian/information/contact.php

And after the line:

Add:

That's basically all, now on the contacts page if you look at the source code will appear meta tags.

Good luck, try it.

You may also like

No Comment

You can post first response comment.

Leave A Comment

Please enter your name. Please enter an valid email address. Please enter a message.