Test version:
Zencart: 1.5.0
Wordpress: 3.6.1
WOZ: wordpress_on_zencart_v1-5
1. install Wordpress
Decompress Wordpress to the ZenCart directory and install wordpress (visit www.xxx.com/wordpress for installation ).
2. Set Wordpress
Set it in the background of Wordpress: Setting-> General
WordPress Address (URL) http://www.xxx.com/wordpress
Site Address (URL) http://www.xxx.com
Set the topic to one of the three rightmost topics under WOZ Default 1.0)
3. Upload WOZ files
Upload the files in the ZC_ROOT directory decompressed by WOZ to the installation directory of Zen-cart on the server. (If the folder name is changed in the background, you must upload it to the corresponding folder)
Upload the files in the WP_ROOT directory decompressed by WOZ to the WordPress installation directory on the server. It mainly contains the topic of woz author and a code for verifying the wordpress path .)
4. Modify the html_header.php File
Add the following code between the/shortdes/templates/MY_TEMP/common/html_header.php and the
<?php if($_GET['main_page']=='wordpress') require($template>get_template_dir('tpl_modules_wordpress_header.php',DIR_WS_TEMPLATE,$current_page_base,'templates'). '/tpl_modules_wordpress_header.php');?>
It mainly references wordpress css and files.
5. Install the woz module of zen-cart
Go to the zencart backend tools/woz manager to install wordpress. Enter the physical address (absolute path) of wordpress, or run www.xxx.com/wordpress/check_path.php. The system automatically downloads wordpress
**********************************
In my zencart, tools does not have woz manager. You need to add a data entry to the gl_admin_pages table in the background:
Both BOX_TOOLS_WOZ and FILENAME_WOZ_NANAGER are defined in the admin \ shortdes \ boxes \ extra_boxes \ woz_tools_dhtml.php file, which is generated by woz.
*****************************
6. Set static woz URLs.
Set static URLs in the wordpress background and A. htaccess file will be generated.
Note: This file must be generated inWordpressBlogDirectory folder, ifZencartDirectory File CreationCutToWordpressDirectory folder
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/zencart/wordpress/
RewriteCond % {REQUEST_FILENAME }! -F
RewriteCond % {REQUEST_FILENAME }! -D
RewriteRule./zencart/wordpress/index. php [L]
</IfModule>
# END WordPress
Then, modify the. htaccess file in the zencart directory and add the Code:
# BEGIN WordPress
RewriteRule ^ blog/index \. php? Main_page = wordpress & % {QUERY_STRING} [L]
RewriteRule ^ blog $ index \. php? Main_page = wordpress & % {QUERY_STRING} [L]
# END WordPress
7. Go to the zencart background and open the sidebar
Tools-> Layout Boxes Controller (the start of wp _ is the five sidebar corresponding to wp)
========================================================== ==============
This document is based on some documents on the Internet and can be tested and generated by yourself.
Download: WOZ wordpress_en_3.6.1
This article is from the "leesir" blog, please be sure to keep this source http://leezhxing.blog.51cto.com/6634351/1298630