Prestashop自带的CMS系统很简单,如果无法满足需要,可使用WordPress来集成Prestashop,即将Prestashop的页头和页脚嵌入到WordPress,在Prestashop官方社区看到这个WordPress module for PrestaShop插件,自己按照教程step by step了下,页面错位,没有成功,不知道哪里出错了。方法摘录如下:
1。到WordPress后台安装插件,或者到http://wordpress.org/extend/plugins/wp-prestashop/下载后上传插件到plugins目录,激活,设置要启用的Prestashop的主题名称。
2.添加下面的代码到WordPress模板文件的functions.php
if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’ => ‘PrestaShop Header iframe’, ‘id’ => ‘header_iframe’ ));if ( function_exists(‘register_sidebar’) ) register_sidebar(array( ‘name’ => ‘PrestaShop Footer iframe’, ‘id’ => ‘footer_iframe’ ));
3.Call this 2 spaces in your theme :
You can display the header iframe like this:
<?php if ( get_header(‘prestashop’) ) get_header(‘prestashop’); ?>
NB: Mostly in your header.php file
You can display the footer iframe like this:
<?php if ( get_footer(‘prestashop’) ) get_footer(‘prestashop’); ?>
NB: Mostly in your footer.php file
4.2 files execute this 2 spaces :
Copy the two files header-prestashop.php and footer-prestashop.php of plugin folder in your theme directory.
5.到主题工具栏激活Prestashop的两个widget。
官方教程:http://blog.joelgaujard.info/tutorial/tutorial-prestashop-wordpress
感觉Prestashop的模板都是一个套路,跟zencart一个样
我按照你的来安装了,可是很奇怪顶部显示不出来。如果把那个部件放在侧边栏就能显示出来一些,放在上面就出不来。大哥,是怎么回事呢?