|
Written by Kirby
|
|
Saturday, 20 December 2008 23:23 |
|
You might want to implement this tweak to your Virtuemart files in order to avoid Google complaining about your product pages containing identical meta descriptions.
I am not a Virtuemart expert and I might end up finding a config that gets around this. However, when I first set up my store I noticed that the product pages all contained a default meta description. The category pages grabbed the category descriptions just fine but the product pages needed help.
Open up /components/com_virtuemart/themes/default/templates/product_details/flypage.tpl.php in vi/emacs/TextEdit/whatever. All you need are the following 2 lines:
$document =& JFactory::getDocument();
$document->setDescription($product_name . ": " . strip_tags($product_description));
I would place these near the top of the file, possibly just after
mm_showMyFileName(__FILE__);
|