Code: Select all
<modification>
<id>Change Header Items</id>
<version>1.0.0</version>
<vqmver>1.0.8</vqmver>
<author>Craig</author>
<file name="catalog/controller/common/header.php">
<operation error="skip">
<search position="replace">
$this->data['home'] = HTTP_SERVER . 'index.php?route=common/home';
</search>
<add>
$this->data['shop'] = 'http://shop.fabtours';
If (stristr($_SERVER['HTTP_HOST'],'shop') === false) {
$this->data['home'] = HTTP_SERVER . 'index.php?route=common/home';
} else {
$this->data['home'] = 'http://fabtours';
}
</add>
</operation>
</file>
</modification>
[/quote]
Yes that looks like it should work. Does the log show it making those modifications to that file?
No that is wrong. That is the OLD way.. as of 1.0.8 you should not be using that as that is deprecated.Incidentally, for OpenCart I found the installation instructions incorrect. I had to modify the:-
require_once('./vqmod/vqmod.php');
$vqmod = new VQMod();
To:-
require_once('vqmod/vqmod.php');
$vqmod = new VQMod('vqmod', TRUE);
Would this be expected? I'm fairly new to PHP.
Cheers,
Craig