예제 #1
0
파일: cart.php 프로젝트: sss201413/ecstore
 public function total()
 {
     $this->_common(false, $_POST['isfastbuy']);
     $obj_total = new b2c_order_total();
     $sdf_order = $_POST;
     if ($_POST) {
         $payment = json_decode($_POST['payment']['pay_app_id'], true);
         $shipping = json_decode($_POST['shipping'], true);
         $address = json_decode($_POST['address'], true);
         $address_area = explode(':', $address['area']);
     }
     $sdf_order['cur'] = $_POST['payment']['currency'];
     $sdf_order['shipping_id'] = $shipping['id'];
     $sdf_order['is_protect'] = $_POST['is_protect'];
     $sdf_order['is_tax'] = $_POST['payment']['is_tax'];
     $sdf_order['tax_type'] = $_POST['payment']['tax_type'];
     $sdf_order['payment'] = $payment['pay_app_id'];
     $arrMember = $this->get_current_member();
     $sdf_order['member_id'] = $arrMember['member_id'];
     $sdf_order['area_id'] = $address_area[2] ? $address_area[2] : $address['area'];
     $sdf_order['dis_point'] = floor($_POST['point']['score']);
     $arr_cart_object = $this->pagedata['aCart'];
     $this->set_header();
     echo $obj_total->order_total_method($this, $arr_cart_object, $sdf_order, "false", "wap/cart/checkout/checkout_total.html");
     exit;
 }
예제 #2
0
파일: cart.php 프로젝트: syjzwjj/quyeba
 public function total()
 {
     $this->_common();
     $obj_total = new b2c_order_total();
     $sdf_order = $_POST;
     $arrMember = $this->get_current_member();
     $sdf_order['member_id'] = $arrMember['member_id'];
     $arr_cart_object = $this->pagedata['aCart'];
     header("Cache-Control:no-store, no-cache, must-revalidate");
     // HTTP/1.1
     header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
     // 强制查询etag
     header('Progma: no-cache');
     echo $obj_total->order_total_method($this, $arr_cart_object, $sdf_order);
     exit;
 }
예제 #3
0
 public function total()
 {
     $this->_common();
     $obj_total = new b2c_order_total();
     $sdf_order = $_POST;
     $arrMember = $this->get_current_member();
     $sdf_order['member_id'] = $arrMember['member_id'];
     $arr_cart_object = $this->mCart->get_objects(true);
     //$sdf_order = array('payment'=>$_POST['payment'],'shipping_id'=>$_POST['shipping_id'],'is_protect'=>$_POST['is_protect'],'currency'=>$_POST['cur'], 'cart'=>$this->pagedata['aCart'], 'is_tax'=>$_POST['is_tax'],'tax_company'=>$_POST['tax_company'],'area'=>$_POST['area']);
     echo $obj_total->order_total_method($this, $arr_cart_object, $sdf_order);
     exit;
 }
예제 #4
0
 /**
  * 计算订单总计信息
  * @param null
  * @return null
  */
 public function total()
 {
     if ($_POST['member_id']) {
         $member_indent = md5($_POST['member_id'] . kernel::single('base_session')->sess_id());
     } else {
         $member_indent = md5(kernel::single('base_session')->sess_id());
     }
     $obj_mCart = $this->app->model('cart');
     $data = $obj_mCart->get_cookie_cart_arr($member_indent);
     $arr_cart_objects = $obj_mCart->get_cart_object($data);
     $obj_total = new b2c_order_total();
     $sdf_order = $_POST;
     echo $obj_total->order_total_method($this, $arr_cart_objects, $sdf_order);
     exit;
 }