要做好外贸网站优化,每一个页面都显得非常的重要。外贸SEO认为产品页的meta信息也显得相当的重要。在此外贸SEO想让大家了解,并做好这方面的工作。接下来将详细讲解如何在zen-cart里批量设置产品页的META信息:

1. title段:
商品名 sales hot on 域名, 商品名 with top quality and discount price. |域名

2. keyword段:
商品名, cheap jerseys, nfl store, nfl wholesale jerseys, nfl authentic jerseys cheap, discount nfl jerseys

3. discription段:
商品名 on 域名 is your best choice, 商品名 with top quality and discount price with any size. Only 3-day shipping.

91zencart.org这里给出一个解决办法:

zen-cart,zen cart虽然提供了非常棒的风火轮功能,可以让用户单独设置每个商品,每个分类的META段。但是

如果用户要全部统一设置就麻烦了,上千商品一个一个改,头皮发麻,手抽筋。

批量统一设置商品页的META方法为:修改includes/modules目录中的meta_tags.php文件

打开它,搜索define(‘META_TAG_TITLE’, str_replace,大概在577行的位置,在 $products_description = zen_clean_html($products_description);的下面。

按客户要求的修改示例:

      define(‘META_TAG_TITLE’, str_replace(‘”‘,”, $review_on . $meta_products_name . ‘ sales hot on 域名, ‘. $meta_products_name . ‘ with top quality and discount price.|域名 ‘));

      define(‘META_TAG_DESCRIPTION’, str_replace(‘”‘,”, $meta_products_name . ‘ on 域名 is your best choice, ‘. $meta_products_name . ‘ with top quality and discount price with any size. Only 3-day shipping.’));

      define(‘META_TAG_KEYWORDS’, str_replace(‘”‘,”,$meta_products_name . ‘, cheap jerseys, nfl store, nfl wholesale jerseys, nfl authentic jerseys cheap, discount nfl jerseys ‘));

这样便完成了所有商品META统一设置的目地了。而且不干扰其他页面。完美解决。

分享到
作者:
该日志由 admin 于2011年12月29日发表在Zencart教程分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。 | +复制链接
转载请注明: 如何在zen-cart里批量设置产品页的META信息
关键字: ,
【上一篇】
【下一篇】

您可能感兴趣的文章:

发表评论

[请申请gravatar头像,木有头像的评论可能不会被回复|头像相关帮助]

插入图片

Slider by webdesign