Meta keywords for OpenCart
14 posts
• Page 1 of 1
Meta keywords for OpenCart
hi
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.
any advise on where i am going wrong and how i can get this working would be a great help please PM me or reply to this message for any more information you require.
thanks in advance
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>
any advise on where i am going wrong and how i can get this working would be a great help please PM me or reply to this message for any more information you require.
thanks in advance
- leew87
- Posts: 25
- Joined: Sat Jun 25, 2011 1:27 pm
Re: Meta keywords for OpenCart
I think that your modification of catalog/controller/common/home.php is wrong (haven't looked too closely at the rest of the code).
Here's my vqmod of the same thing. I used to run it on 1.4.9.3 and have just updated it for 1.5.1.3 (tested and working).
Now updated for 1.5.4.1
Here's my vqmod of the same thing. I used to run it on 1.4.9.3 and have just updated it for 1.5.1.3 (tested and working).
Now updated for 1.5.4.1
Last edited by philbydevil on Wed Aug 22, 2012 11:54 pm, edited 1 time in total.
-

philbydevil - Posts: 828
- Joined: Thu Dec 02, 2010 9:20 pm
- Location: Sunshine Coast, Australia
Re: Meta keywords for OpenCart
thanks so much i will compare the to mods to see where i have gone wrong and learn from your working code.
as this is my 1st vqmod that i have tried working hopefully i have more luck getting it right next time.
as they say if you don't succeed at first try try try again.
my next challenges are
1) to add my 2 social media buttons i have hard coding into the header file using Vqmod so hard coding is not needed
2) moving the cart and search bar i have on my site to new location using vqmod from the original location in template.
This will make it sooooo much easier when upgrading or installing bug fixes to my template i use have customised.
Thanks again
as this is my 1st vqmod that i have tried working hopefully i have more luck getting it right next time.
as they say if you don't succeed at first try try try again.
my next challenges are
1) to add my 2 social media buttons i have hard coding into the header file using Vqmod so hard coding is not needed
2) moving the cart and search bar i have on my site to new location using vqmod from the original location in template.
This will make it sooooo much easier when upgrading or installing bug fixes to my template i use have customised.
Thanks again
- leew87
- Posts: 25
- Joined: Sat Jun 25, 2011 1:27 pm
Re: Meta keywords for OpenCart
When you do the "search position" (ie. <search position="after"><
philbydevil - Posts: 828
- Joined: Thu Dec 02, 2010 9:20 pm
- Location: Sunshine Coast, Australia
Re: Meta keywords for OpenCart
- Code: Select all
<modification>
<id>Custom Template Edits</id>
<version>2.0.0</version>
<vqmver>2.1.5</vqmver>
<author>ILL IT Solutions</author>
<file name="/catalog/view/theme/ModernStore/template/common/header.tpl">
<operation>
<search position="after"><![CDATA[
<div id="header_top">
]]></search>
<add><![CDATA[
<div><a href="http://twitter.com/#!/illitsolutions"><img src="image/data/siteparts/twitter_button.png" alt="Twitter" width="118" height="59" /></a></div>
<div><a href="http://www.facebook.com/ILLITSolutions"><img src="image/data/siteparts/facebook_button.png" alt="Facebook" width="118" height="59" /></a></div>
]]></add>
</operation>
</modification>
this is what i have as in my current header.tpl file if i add that coding after the search it will give me what is hard coded but when i run it doesnt seem to do anything but i do get the follow error now Caught exception: DOMDocument::load() [<a href='domdocument.load'>domdocument.load</a>]: Opening and ending tag mismatch: file line 8 and modification in /home/illit/public_html/vqmod/xml/vqmod_Custom_Template Edits.xml, line: 20 in the vqmod.log file.
i really cant understand what i am doing wrong
- leew87
- Posts: 25
- Joined: Sat Jun 25, 2011 1:27 pm
Re: Meta keywords for OpenCart
i have now found out the problem i was missing the closing tag for the file part of the XML so i added </file> before the
</modification> in the XML and all now works fine.
just a quick question do you know if it is possiable to edit css files using vqmod
</modification> in the XML and all now works fine.
just a quick question do you know if it is possiable to edit css files using vqmod
- leew87
- Posts: 25
- Joined: Sat Jun 25, 2011 1:27 pm
Re: Meta keywords for OpenCart
just a quick question do you know if it is possiable to edit css files using vqmod
I haven't tried it myself but I don't see why it wouldn't work.
-

philbydevil - Posts: 828
- Joined: Thu Dec 02, 2010 9:20 pm
- Location: Sunshine Coast, Australia
Re: Meta keywords for OpenCart
do you know if or how is possiable to get the xml script just to add coding at the end of the file without adding before or after or even replacing
as if this is possiable i could use this so any Css changes i add using Vqmod would just go at the end of the main template css this would allow me to upgrade all files on the templates and not worry if they are over written as vqmod does not get over written each time.
i have found you can you a comand called bottom but can not find a script where is this used so i can see the correct syntax for it.
onces again i thank you for all your assistance
as if this is possiable i could use this so any Css changes i add using Vqmod would just go at the end of the main template css this would allow me to upgrade all files on the templates and not worry if they are over written as vqmod does not get over written each time.
i have found you can you a comand called bottom but can not find a script where is this used so i can see the correct syntax for it.
onces again i thank you for all your assistance
- leew87
- Posts: 25
- Joined: Sat Jun 25, 2011 1:27 pm
Re: Meta keywords for OpenCart
Try something like this:
- Code: Select all
<file name="catalog/view/theme/YOURTHEME/stylesheet/stylesheet.css">
<operation>
<search position="bottom"><![CDATA[
You don't need any code here as it will be ignored
]]></search>
<add><![CDATA[
INSERT YOUR NEW CODE HERE
]]></add>
</operation>
</file>
-

philbydevil - Posts: 828
- Joined: Thu Dec 02, 2010 9:20 pm
- Location: Sunshine Coast, Australia
Re: Meta keywords for OpenCart
Hi,
is there a possibility that this vQmod works on 1.4.9.6 ?
thx !
is there a possibility that this vQmod works on 1.4.9.6 ?
thx !
-

SVN - Posts: 204
- Joined: Mon Jan 03, 2011 3:59 pm
Re: Meta keywords for OpenCart
There's a 1.4 version in vQmods that should
-

philbydevil - Posts: 828
- Joined: Thu Dec 02, 2010 9:20 pm
- Location: Sunshine Coast, Australia
Re: Meta keywords for OpenCart
Philbydevil
Thank you so much for this vQmod - it works perfectly in 1.5.4.1 and it's really easy to use.
Thanks again
Thank you so much for this vQmod - it works perfectly in 1.5.4.1 and it's really easy to use.
Thanks again
- Mr Hot Pants
- Posts: 2
- Joined: Sat Jul 28, 2012 5:31 pm
Re: Meta keywords for OpenCart
philbydevil wrote:I think that your modification of catalog/controller/common/home.php is wrong (haven't looked too closely at the rest of the code).
Here's my vqmod of the same thing. I used to run it on 1.4.9.3 and have just updated it for 1.5.1.3 (tested and working).
Now updated for 1.5.4.1
Thank you from thailand. I use your keyword VQMOD and work for 1.5.2.1
really thank you
Tan
-

sataan2006 - Posts: 3
- Joined: Wed Jul 11, 2012 11:15 am
- Location: Thailand
Re: Meta keywords for OpenCart
Thanks
Works perfect with Opencart 1.5.4.1.
Works perfect with Opencart 1.5.4.1.Opencart 1.5.4.1
http://www.duurzaamondergoed.nl
http://www.duurzaamondergoed.nl
- tomatito
- Posts: 193
- Joined: Fri Oct 12, 2012 8:15 pm
14 posts
• Page 1 of 1
Who is online
Users browsing this forum: cgchris99, eric1998 and 14 guests


cmd-f, cmd-c, cmd-v, cmd-z + vQmod.
Fashion Jewelry Handmade
Shipping Thailand










