/* 团购标志 */ if ($flow_type == CART_GROUP_BUY_GOODS) { $smarty->assign('is_group_buy', 1); } //$result['cod_fee'] = $shipping_info['pay_fee']; if (strpos($result['cod_fee'], '%') === false) { $result['cod_fee'] = price_format($result['cod_fee'], false); } //$result['need_insure'] = ($shipping_info['insure'] > 0 && !empty($order['need_insure'])) ? 1 : 0; $result['content'] = $smarty->fetch('library/order_total.lbi'); $result['suppid'] = $suppid; $result['picktxt'] = ''; if (is_pups($recid)) { $consignee = get_consignee($_SESSION['user_id']); if (isset($consignee['city']) && intval($consignee['city']) > 0) { $pickinfo = get_pickup_info(intval($consignee['city'])); if ($pickinfo) { $result['picktxt'] = "<input type='hidden' id='point" . $suppid . "' name='pickup_point[" . $suppid . "]' value='" . $pickinfo[0]['id'] . "'><span class='ziti'>自提点:</span><span>" . $pickinfo[0]['shop_name'] . "</span><a href='javascript:void(0);' onclick='show(\"pop\"," . $suppid . ")' class='revise'>修改</a>"; } foreach ($pickinfo as $pkey => $pval) { if ($consignee['district'] == $pval['district_id']) { $result['picktxt'] = "<input type='hidden' id='point" . $suppid . "' name='pickup_point[" . $suppid . "]' value='" . $pval['id'] . "'><span class='ziti'>自提点:</span><span>" . $pval['shop_name'] . "</span><a href='javascript:void(0);' onclick='show(\"pop\"," . $suppid . ")' class='revise'>修改</a>"; } } } } /* 代码增加_start By www.68ecshop.com */ //$result['supplier_shipping'] = $smarty->fetch('library/order_supplier_shipping.lbi'); /* 代码增加_end By www.68ecshop.com */ //$result['pickup_content'] = ''; /*
$smarty->assign('total_integral', cart_amount(false, $flow_type) - $total['bonus'] - $total['integral_money']); $smarty->assign('total_bonus', price_format(get_total_bonus(), false)); /* 团购标志 */ if ($flow_type == CART_GROUP_BUY_GOODS) { $smarty->assign('is_group_buy', 1); } $result['content'] = $smarty->fetch('library/order_total.lbi'); } echo $json->encode($result); exit; } elseif ($_REQUEST['step'] == 'ziti') { $pid = isset($_REQUEST['pid']) ? intval($_REQUEST['pid']) : 0; $suppid = isset($_REQUEST['sid']) ? intval($_REQUEST['sid']) : 0; //$consignee = get_consignee($_SESSION['user_id']); $info = get_pickup_one_info($pid); $pickinfo = get_pickup_info($info['city_id']); $retinfo = array(); foreach ($pickinfo as $key => $val) { $retinfo[$val['district_id']]['name'] = $val['region_name']; $retinfo[$val['district_id']]['info'][] = $val; } $smarty->assign('district', intval($info['district_id'])); $smarty->assign('selectid', $pid); $smarty->assign('suppid', $suppid); $smarty->assign('pinfo', $retinfo); } elseif ($_REQUEST['step'] == 'doziti') { $pid = isset($_REQUEST['pid']) ? intval($_REQUEST['pid']) : 0; $suppid = isset($_REQUEST['sid']) ? intval($_REQUEST['sid']) : 0; if ($pid > 0) { $_SESSION['flow_order']['ziti'][$suppid] = $pid; }
// $smarty->assign('is_pre_sale', 1); // } $result['cod_fee'] = $shipping_info['pay_fee']; if (strpos($result['cod_fee'], '%') === false) { $result['cod_fee'] = price_format($result['cod_fee'], false); } //$result['need_insure'] = ($shipping_info['insure'] > 0 && !empty($order['need_insure'])) ? 1 : 0; $result['content'] = $smarty->fetch('library/order_total.lbi'); /* 代码增加_start By www.68ecshop.com */ //$result['supplier_shipping'] = $smarty->fetch('library/order_supplier_shipping.lbi'); /* 代码增加_end By www.68ecshop.com */ $result['suppid'] = $suppid; $result['picktxt'] = ''; if (is_pups($recid)) { if (isset($consignee['city']) && intval($consignee['city']) > 0) { $pickinfo = get_pickup_info(intval($consignee['city']), $suppid); if ($pickinfo) { $result['picktxt'] = "<input type='hidden' id='point" . $suppid . "' name='pickup_point[" . $suppid . "]' value='" . $pickinfo[0]['id'] . "'><span class='ziti'>自提点:</span><span>" . $pickinfo[0]['shop_name'] . "</span><a href='javascript:void(0);' onclick='show(\"pop\"," . $suppid . ")' class='revise'>修改</a>"; } foreach ($pickinfo as $pkey => $pval) { if ($consignee['district'] == $pval['district_id']) { $result['picktxt'] = "<input type='hidden' id='point" . $suppid . "' name='pickup_point[" . $suppid . "]' value='" . $pval['id'] . "'><span class='ziti'>自提点:</span><span>" . $pval['shop_name'] . "</span><a href='javascript:void(0);' onclick='show(\"pop\"," . $suppid . ")' class='revise'>修改</a>"; } } } } } echo $json->encode($result); exit; } elseif ($_REQUEST['step'] == 'select_insure') { /*------------------------------------------------------ */