分类
Zen-cart商品产品页增加相关产品推荐产品功能方法
为Zen-cart商品产品页增加相关产品推荐产品功能方法
1.\includes\templates\模板名称\templates\tpl_product_info_display.php 在相应显示的地方加上代码:
[php]<!–bof similar –>
<?php require($template->get_template_dir(‘/tpl_product_info_similar.php’,DIR_WS_TEMPLATE, $current_page_base,’templates’). ‘/tpl_product_info_similar.php’);?>
<!–eof similar –>[/php]
2.上传文件tpl_product_info_similar.php到\includes\templates\模板名称\templates\下。
3.最终效果图
4.相关下载
[file]