1.修改购物流程(/flow.php)
/* 获得用户所有的收货人信息 */if ($_SESSION['user_id'] > 0){ $consignee_list = get_consignee_list($_SESSION['user_id']); if (count($consignee_list) < 10) //10个 { /* 如果用户收货人信息的总数小于 10 则增加一个新的收货人信息 */ $consignee_list[] = array('country' => $_CFG['shop_country'], 'email' => isset($_SESSION['email']) ? $_SESSION['email'] : ''); }}
2.修改用户中心(/use.php)
if (count($consignee_list) < 10 && $_SESSION['user_id'] > 0) //10个{ /* 如果用户收货人信息的总数小于10 则增加一个新的收货人信息 */ $consignee_list[] = array('country' => $_CFG['shop_country'], 'email' => isset($_SESSION['email']) ? $_SESSION['email'] : '');}