ECSHOP购物车关闭浏览器同时保存购物车商品

ECSHOP教程 来源: ecshop插件网www.ecshop520.com 时间:2013-07-06 ECSHOP教程分类:ECSHOP购买流程页修改

init.php

修改

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 (!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()));

转载请注明:ecshop插件网-ecshop插件网官网http://www.ecshop520.com/jiaocheng-708.html

ECSHOP插件网
ecshop开发团队 ecshop开发中心 ecshop模板制作 ecshop插件网简介
ECSHOP
ecshop下载 ecshop安装教程 ecshop在线演示 ecshop后台测试
ECSHOP二次开发手册
ecshop教程 ecshop二次开发 ecshop模板教程 ecshop微信配置
ECSHOP商城网站建设
ecshop空间域名 ecshop商城建设 ecshop模板修改 ecshop开发定制
联系我们 ECShop插件下载
ECShop二次开发
ecshop搭建

ICP备案证书号:闽ICP备19017195号-2

qq code back_top
温馨提示

确定取消
温馨提示

关闭