fetch1("select pid,pname,price,psay from {$dbtbpre}enewsshopps where pid='$pid' and isclose=0"); if(empty($r[pid])) { printerror('请选择配送方式','',1,0,1); } $r['price']=ShopSys_PrePsTotal($r['pid'],$r['price'],$totalr['truetotalmoney'],$shoppr); echo"
".$r[pname]." 费用:¥".$r['price']."
".$r[psay]."
"; return $r['price']; } //显示支付方式 function ShowPayfs($payfsid,$r,$price){ global $empire,$public_r,$dbtbpre,$totalr,$shoppr; $payfsid=(int)$payfsid; $add=$empire->fetch1("select payid,payname,payurl,paysay,userpay,userfen from {$dbtbpre}enewsshoppayfs where payid='$payfsid' and isclose=0"); if(empty($add[payid])) { printerror('请选择支付方式','',1,0,1); } //总金额 $buyallmoney=$totalr['totalmoney']+$price-$totalr['pretotal']; if($add[userfen]&&$r[fp]) { printerror("FenNotFp","history.go(-1)",1); } //发票 if($r[fp]) { $fptotal=($totalr['totalmoney']-$totalr['pretotal'])*($shoppr[fpnum]/100); $afp="+发票费(".$fptotal.")"; $buyallmoney+=$fptotal; } $buyallfen=$totalr['totalfen']+$price; $returntotal="采购总额(".$totalr['totalmoney'].")+配送费(".$price.")".$afp."-优惠(".$totalr['pretotal'].")=总额(".$buyallmoney." 元)"; $mytotal="结算总金额为:".$buyallmoney." 元 全部"; //是否登陆 if($add[userfen]||$add[userpay]) { if(!getcvar('mluserid')) { printerror("NotLoginTobuy","history.go(-1)",1); } $user=islogin(); //点数购买 if($add[userfen]) { if($buyallfen>$user[userfen]) { printerror("NotEnoughFenBuy","history.go(-1)",1); } $returntotal="采购总点数(".$totalr['totalfen'].")+配送点数费(".$price.")=总点数(".$buyallfen." 点)"; $mytotal="结算总点数为:".$buyallfen." 点 全部"; } else//扣除余额 { if($buyallmoney>$user[money]) { printerror("NotEnoughMoneyBuy","history.go(-1)",1); } } } echo "
".$add[payname]."
"; $return[0]=$returntotal; $return[1]=$mytotal; return $return; } ?> 订单确认
订单号:
选择的商品
收货人信息
真实姓名:
OICQ:
MSN:
固定电话:
移动电话:
联系邮箱:
联系地址:
邮编:
周边标志建筑:
最佳送货时间:
备注:
选择配送方式
选择支付方式
发票信息
发票费用: %
发票抬头:
发票名称:
优惠
优惠码:
优惠金额:
结算信息