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 (+17 rating, 9 votes)
Loading ... Loading ...

Drupal 7 – Disabled menu items after editing basic pages using Internationalization (i18n) module

The problem: In Drupal 7.22 when editing basic pages using Internationalization (i18n) module you run into disabled menu items.

Use this patch posted by martins.bertins on March 14, 2013 https://drupal.org/files/disabled_menu_items-1693074-26.patch to fix it.
Read more »

Drupal 7 – Service links » Issues – Error after upgrading to 7.x-2.2

After upgrading Drupal 7 Service links module to 7.x-2.2, the following error message appears:

The following updates returned messages
service_links module
Update #6200

Failed: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘service_links_show_’ in ‘where clause’: SELECT name FROM {variable} v WHERE LOCATE(“service_links_show_”,v.name) > 0; Array ( ) in service_links_update_6200() (line 46 of /home/ippokratios/ippokratios.com/sites/all/modules/contributed/service_links/service_links.install).

Read more »