购物车为空

相关商品模块


=========================
安装说明
=========================

备份 备份 备份

1. 管理页面->工具->SQL工具,执行SQL脚本 (products_xsell.sql)

2. 修改zccn目录为你自己的模板目录:
/includes/modules/zccn
/includes/templates/zccn
/includes/languages/english/zccn
/includes/languages/schinese/zccn

3. 上传所有文件到相应目录... *** 除了*** 下面几个:
/includes/templates/zccn/templates/SAMPLE_ADDITION_TO_tpl_product_info_display.php
/includes/languages/english/zccn/SAMPLE_ADDITIONS_TO_product_info.php
/includes/languages/schinese/zccn/SAMPLE_ADDITIONS_TO_product_info.php
如果你上传了这些样品文件,也许会出现模板错误

4. 打开 includes/languages/schinese/product_info.php 或者 includes/languages/schinese/zccn/product_info.php
在最后的 ?> 前面,加上
define('TEXT_XSELL_PRODUCTS', '相关推荐商品 :');
然后保存到 includes/languages/schinese/zccn/product_info.php (如果有英文文件,也做相应修改)

4.b. - 如果你有多种商品类型,重复步骤 4

5. 编辑商品信息页面的模板文件(tpl_product_info_display.php)。在需要显示相关商品的位置,加入下面的代码
通常位于文件最后:
---------------------------------
if (zen_not_null($xsell_data)) {
$info_box_contents = array();
$list_box_contents = $xsell_data;
$title = TEXT_XSELL_PRODUCTS;
require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
}
?>
-------------------------------

5.b. 如果有其它商品类型,重复步骤 5


安装完成


=========================
模块说明
=========================

该模块可以在当前商品页面,添加最多6个可选商品
(例如) 你销售随身听,可以同时推荐电池、机套等商品

=========================
使用说明
=========================

管理页面->商品管理->相关商品
下载链接: 相关商品模块

该商品加入分类的日期为 2010年 01月 01日