zencart产品信息页添加推荐同类产品源码,js点击左右滚动

zencart产品详细页推荐同类产品,在产品详细页可以推荐同类商品,并且通过JS可以控制推荐的商品左右滚动.

操作步骤:
1.把ScrollPic.js放到includes/templates/你的模板/jscript/下,图片放到你includes/templates/你的模板/images下

2.把tpl_products_round.PHP文件放到includes/templates/你的模板/templates/下并改下面的语句

[php]
<SCRIPT src="includes/templates/你的模板/jscript/ScrollPic.js" type=text/javascript>[/php]

3.把scrollpic.css放到你模板下的样式表里

4.includes/templates/你的模板/templates/tpl_product_info_display.PHP顶部加上

[php]
<?php require($template->get_template_dir(‘/tpl_products_round.php’,DIR_WS_TEMPLATE, $current_page_base,’templates’). ‘/tpl_products_round.php’);?>

[/php]

zencart产品详细页推荐同类产品下载

标签


Warning: error_log(/www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/#log/log-2909.txt): failed to open stream: No such file or directory in /www/wwwroot/www.ctrol.cn/wp-content/plugins/spider-analyser/spider.class.php on line 2900