ecshop浏览历史功能是怎么实现的,就是你浏览了某个商品就会写入cookie,是在哪里执行的呢

[复制链接]
查看11 | 回复1 | 2012-9-21 16:37:31 | 显示全部楼层 |阅读模式
goods.php中/* 记录浏览历史 */if (!empty($_COOKIE['ECS']['history'])){
$history = explode(',', $_COOKIE['ECS']['history']);
array_unshift($history, $goods_id);
$history = array_unique($history);
while (count($history) > $_CFG['history_number'])
{
array_pop($history);
}
setcookie('ECS[h...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行