Category Archives: Opencart

vQmod: Add store title to all pages in opencart

How do I add my store’s name to all pages (product, manufacturer, information etc) in Opencart?

Examples:
Product Name | My Store Name
Manufacturer Name | My Store Name
Account Login | My Store Name

Here is a quick vQmod extension for opencart which adds your store’s name automatically to all pages (for SEO).

Open your favorite editor (e.g sublime), create the

system_library_store_name_in_page_title.xml

copy the xml code below, paste it in you file, save it and upload it to

/vqmod/xml

folder inside your opencart installation. Do not forget to replace ” | My Store Name” with yours.

<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Add Store Name at the end of title tag</id>
<version>1.0</version>
<vqmver required="true">2.4.0</vqmver>
<author>nikos.branis [at] kanenas.net</author>
<file name="system/library/document.php" error="log">
<operation error="skip">
<search position="replace"><![CDATA[$this->title = $title;]]></search>
<add><![CDATA[$this->title = $title . ' | My Store Name';]]></add>
</operation>
</file>
</modification>

Tested in Opencart v.1.5.5.1, v.1.5.6.1 but I think it will work for all versions between them.

TODO: Make this vQmod work for more than one language (multi-language stores).

1 Star2 Stars (+59 rating, 30 votes)
Loading...