整合Wordpress到Magento的插件 - Lazzymonks Wordpress Integration

整合Wordpress到Magento的插件 - Lazzymonks Wordpress Integration

Wordpress是一个很强大的博客发布程序,而Magento是一个强大的电子商务程序,两者如果可以整合的话就更好了。不用着急,是有这样的Magento插件可以实现这个功能,就是Lazzymonks Wordpress Integration。

Magento Connect:magento-community/Mage_Blog

首先要提醒,Magento和Wordpress都需要安装到同一个数据库上。不然可能会发生比较多的错误,可以用表前缀来区别开。


特点:

This extension adds the ability to integrate wordpress into magento.
It has adjustable page layout from with in the admin menu. 
Wordpress menu can be set to show in the left column, right column, both or neither. 
A link in the footer can be enabled or disabled.
And the page title can also be set.
Below are instructions on changes that need making to wordpress and magento to enable this extension to work. Copies of these files with the changes already applied are included in the extension. These however should be used with caution. They can be found in the magento base, in a folder called wordpress_module_files.


安装步骤:

1. find index.php in the root of your magento installation and find the following line of code
require_once $mageFilename;
and add the following after it
define('WP_USE_THEMES', true);
require('./wordpress/wp-blog-header.php');
you will need to be sure that the second line points to the location of your wordpress installation, as it is, it assumes wordpress in installed in the magento directory.
2. in wordpress/wp-settings.php find the following lines of code and remove the & symbol
Line 399
$wp_the_query =& new WP_Query();
Line 414
$wp_rewrite =& new WP_Rewrite();
Line 421
$wp =& new WP();
Line 456
$wp_locale =& new WP_Locale();
also in wordpress/wp-settings.php remove or comment out the following lines
Line 386
// Escape with wpdb.
$_GET = add_magic_quotes($_GET );
$_POST = add_magic_quotes($_POST );
$_COOKIE = add_magic_quotes($_COOKIE);
$_SERVER = add_magic_quotes($_SERVER);
3. In wordpress/wp-includes/l10n.php at line 116
change
function __($text, $domain = 'default') {
return translate($text, $domain);
}
to
if (!function_exists('__')) {
function __($text, $domain = 'default') {
return translate($text, $domain);
}
}
4. now to the wordpress part. copy the theme in wordpress_module_files/wordpress-theme into wordpress/wp-content/themes
5. log into the admin panel of wordpress and click settings. then change the “Blog address (URL)” tohttp://yoursite.com/magento/blog change to fit your site, but leave the blog part. Save settings then Click permalinks. Ensure permalinks are set to default. Finaly goto design and select the magento theme installed in step 4.
6. now go to http://yoursite.com/magento/blog to access the blog.

要获取更详细的信息可以访问:http://www.magentocommerce.com/extension/296/lazzymonks-wordpress-integration

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值