博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
wordpress和magento整合
阅读量:4201 次
发布时间:2019-05-26

本文共 929 字,大约阅读时间需要 3 分钟。

 

1.magento  1.4.1.1

   wordpress

2安装插件

名称:    Fishpig's Wordpress Integration

Extension Key:magento-community/Fishpig_Wordpress_Integration

网址:   http://www.magentocommerce.com/magento-connect/fishpig/extension/3958/fishpig_wordpress_integration

介绍:  有一个老插件已经N久没更新了,这个是另一个新鲜出炉的Wordpress与Magento整合插件

 

3

安装wordpress

必须在magento目录下新建一个文件夹名字为blog

数据库和magento一个就可以,还方便

然后安装

 

wordpress汉化见magento的press汉化

 

4。magento设置

后台设置

 

5显示

template/callouts/magento_blog.phtml文件中写入

 

<?php $channel = new Zend_Feed_Rss('http://127.0.0.1/magento_test/blog/?feed=rss2'); ?>

<div>

<div>

<h2><?php echo $this->__('Latest Articles form the Blog') ?></h2>

</div>

<div>

<ol id="graybox-latest-news">

<?php foreach ($channel as $item): ?>

<li><a href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></li>

<?php endforeach; ?>

</ol>

</div>

</div>

然后再catelog中写入

<block type="core/template"   template="callouts/magento_blog.phtml">

 

6wordpress中添加文章,刷新,查看存放的位置是否显示!!

 

转载地址:http://zedli.baihongyu.com/

你可能感兴趣的文章
实现haproxy+LNMT负载均衡架构
查看>>
TensorFlow和keras的前世今生以及keras和tf.keras的对比
查看>>
Keras(一)分类模型实战
查看>>
Keras(二)回归模型实战
查看>>
Keras(三)实现深度神经网络
查看>>
sigmoid函数求导、求极值(史上最详细)
查看>>
Keras(四)实现批标准化、激活函数、dropout
查看>>
Keras(五)wide_deep模型
查看>>
Keras(六)keras模型封装转化为sklearn模型、使用超参数搜索
查看>>
排坑:TypeError: handle_get_file_code() got an unexpected keyword argument ‘save_all‘
查看>>
C++ explict
查看>>
const
查看>>
new & delete
查看>>
《Windows程序设计》第4章
查看>>
VC项目文件说明
查看>>
用Win32实现类似MFC中Draw3dRect函数的功能
查看>>
static、const和static const以及它们的初始化
查看>>
static
查看>>
《Windows程序设计》第5章
查看>>
#define
查看>>