i wonder if anyone can help me i am trying to write my 1st vqmod to add meta keywords field to the admin side of opencart.
i am trying to make the following changes to my opencart store running 1.5.1.2 found in http://www.guru.net.nz/blog/2011/11/met ... ncart.html
but when i upload my xml file to the /vqmod/xmland reload my ste my site does not load and i get a white page i have checked for the vqmod.og file to show me where the errors aare but this is empty.
Code: Select all
<modification>
<id>metakeywords 2 admin</id>
<version>1.0</version>
<vqmver>2.0</vqmver>
<file name="admin/controller/setting/setting.php">
<operation>
<search position="after"><![CDATA[
$this->data['entry_meta_description'] = $this->language->get('entry_meta_description');
]]></search>
<add><![CDATA[
$this->data['entry_meta_keywords'] = $this->language->get('entry_meta_keywords');
]]></add>
</operation>
</file>
<file name="admin/controller/setting/setting.php">
<operation>
<search position="after"><![CDATA[
config_meta_description
]]></search>
<add><![CDATA[
if (isset($this->request->post['config_meta_keywords'])) {
$this->data['config_meta_keywords'] = $this->request->post['config_meta_keywords'];
} else {
$this->data['config_meta_keywords'] = $this->config->get('config_meta_keywords');
}
]]></add>
</operation>
</file>
<file name="admin/language/english/setting/setting.php">
<operation>
<search position="after"><![CDATA[
entry_meta_description
]]></search>
<add><![CDATA[
<tr>
<td><?php echo $entry_meta_keywords; ?></td>
<td><input type="text" name="config_meta_keywords" value="<?php echo $config_meta_keywords; ?>" />
<?php if ($error_entry_meta_keywords) { ?>
<span class="error"><?php echo $error_entry_meta_keywords; ?></span>
<?php } ?></td>
</tr>
]]></add>
</operation>
</file>
<file name="admin/view/template/setting/setting.tpl">
<operation>
<search position="after"><![CDATA[
config_meta_description </tr>
]]></search>
<add><![CDATA[
$_['entry_meta_keywords'] = 'Meta Tag Keywords:';
]]></add>
</operation>
</file>
<file name="catalog/controller/common/home.php">
<operation>
<search position="after"><![CDATA[
config_meta_description
]]></search>
<add><![CDATA[
$this->document->keywords = $this->config->get('config_meta_keywords');
]]></add>
</operation>
</file>
</modification>
thanks in advance