目前ecshop是不能实现关闭购物车商品保留的,,下面ECSHOP开发中心教大家如何去实现
打开\includes\init.php 代码在150-158行
改成
if (!defined(‘INIT_NO_USERS’))
{
include(ROOT_PATH . ‘includes/cls_session.php’);
$sess = new cls_session($db, $ecs->table(‘sessions’), $ecs->table(‘sessions_data’));
//define(‘SESS_ID’, $sess->get_session_id());
}
继续 在本页面最下面(?>前加)
if($_COOKIE[‘randnumber’]==""){setcookie("randnumber",rand(0,1000),time()+86400);}define(‘SESS_ID’, md5($_COOKIE[‘randnumber’].real_ip()));
放弃那些不愿放弃的,容忍那些不可容忍的。