I have some code that needs modification to work with OC 3.0.3.7, the code is from OC 2.0.3.2
Its for use with SEO Mega Kit, since i use multistore this code is meant to add the store name in the end of every category or product, i tried to install the code on ocmod as is but it didnt work.
Would appreciate if someone can update the code to work on OC 3.0.3.7
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name>Store names in title (multistore)</name>
<code>seo_store_name</code>
<version>1.1.0</version>
<author>XXX</author>
<link>https://www.domain.com</link>
<!-- CATALOG -->
<file name="catalog/controller/common/header.php">
<operation>
<search position="after"><![CDATA[$data['title'] = $this->document->getTitle();]]></search>
<add><![CDATA[
$route = (!isset($this->request->get['route']) || $this->request->get['route'] == 'common/home') ? false : $this->request->get['route'];
if($route) {
$data['title'] .= ' | ' . $this->config->get('config_name');
}
]]></add>
</operation>
</file>
</modification>