ECSHOP开发中心整理-商品详情页面想要调用销售排行榜怎么办呢,请按照以下步骤进行添加
第一步:
销售排行榜的代码在themes/我的模板名称/library/top10.lbi
在goods.dwt里 加一句<!– #BeginLibraryItem “/library/top10.lbi” –><!– #EndLibraryItem –>
第二步:
打开网站根目录下的goods.php
找到
$smarty->assign(‘properties’, $properties[‘pro’]); // 商品属性
在下面加一句
$smarty->assign(‘top_goods’, get_top10()); // 销售排行
进入网站后台清理缓存即可