`
碧血剑
  • 浏览: 212345 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ecshop 删除收货人信息同时删除cookie中的,联动效果

阅读更多

使用Ecshop有个问题,就是删除收货人信息的时候,在ecs_sessions_data中还存储有信息,所以每次都无法彻底清除,

方法:在drop_consignee方法,删除收货人信息的方法里,添加即可

同时在user.php drop_consignee加入以下代码

             

              //同时删除cookie中的收货人地址

$consignee ;//= new array(};

$_SESSION['flow_consignee'] = stripslashes_deep($consignee);

elseif ($_REQUEST['step'] == 'drop_consignee')
{
    /*------------------------------------------------------ */
    //-- 删除收货人信息
    /*------------------------------------------------------ */
    include_once('includes/lib_transaction.php');

    $consignee_id = intval($_GET['id']);

    if (drop_consignee($consignee_id))
    {

		//同时删除cookie中的收货人地址
		$consignee ;//= new array(};
		$_SESSION['flow_consignee'] = stripslashes_deep($consignee);
        ecs_header("Location: flow.php?step=consignee\n");
        exit;
    }
    else
    {
        show_message($_LANG['not_fount_consignee']);
    }
}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics