I've probably missed something obvious, but was hoping to get a bit of help or advice in regards to using / installing vqmod files on Opencart 2.
I'm currently trying to use the Extension installer to install modifications, and I've created a really simple VQmod xml file to test this, but I'm not seeing any changes.
I have installed Opencart 2.0.1.0, and I've also used this extension here:
http://www.opencart.com/index.php?route ... n_id=19501
to allow VQmod files to be used.
The contents of the test file are was follows:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Make sure VQmod working</id>
<version>1.0.0</version>
<vqmver>2.4.1</vqmver>
<author>AlexBennett</author>
<file name="catalog/view/theme/*/template/common/header.php">
<operation error="log">
<search position="replace"><![CDATA[
<li><a href="<?php echo $contact; ?>"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md"><?php echo $telephone; ?></span></li>
]]></search>
<add><![CDATA[
<li><a href="<?php echo $contact; ?>"><i class="fa fa-phone"></i></a> <span class="hidden-xs hidden-sm hidden-md">My Telephone Number!!!!</span></li>
]]></add>
</operation>
</file>
</modification>
Can anyone tell me if there's an obvious reason why this isn't working? IN the extension installer it says it's installed successfully, and the log is as follows in modifications:
Code: Select all
2015-01-11 19:23:17 - MOD: Modification Default
FILE: system/engine/action.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 58
FILE: system/engine/loader.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 20
LINE: 37
LINE: 54
LINE: 65
FILE: system/library/config.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 23
FILE: system/library/language.php
REGEX: ~(require|include)(_once)?\(([^)]+)~
LINE: 21
LINE: 27
----------------------------------------------------------------
Modification::refresh - Processing 'Make sure VQmod working'
Modification::refresh - Done 'Make sure VQmod working'
Also the test file is based on the header file in Opencart 2 not and older version.
Any help with this is much appreciated!!
Regards, Alex
