includes/lib_insert.php 找到 insert_history()方法
将 " WHERE $where AND is_on_sale = 1 AND is_alone_sale = 1 AND
is_delete = 0";
替换为 :
" WHERE $where AND is_on_sale = 1 AND is_alone_sale = 1 AND
is_delete = 0 order by INSTR('".$_COOKIE['ECS']['history']."',goods_id)";
二、调用 在 goods.php 中
$history_goods = insert_history();
$smarty->assign('history_goods', $history_goods);
对应模板中 {$history_goods} 即可
三、设置历史浏览商品数量进入后台,系统设置---商店设置---显示设置---浏览历史数量设置
最佳答案
