Changeset 19990 for branches/version-2_5-dev/data
- Timestamp:
- 2011/01/19 21:06:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Order.php
r19943 r19990 75 75 76 76 for($num = 0; $num < count($arrDisp); $num++) { 77 $product_id = $arrDisp[$num]['product_id'];78 77 $product_class_id = $arrDisp[$num]['product_class_id']; 79 $cate_id1 = $arrDisp[$num]['classcategory_id1'];80 $cate_id2 = $arrDisp[$num]['classcategory_id2'];81 78 $quantity = $arrDisp[$num]['quantity']; 79 $product_type_id = $arrDisp[$num]['product_type_id']; 82 80 83 $objCartSess->addProduct( array($product_id, $product_class_id, $cate_id1, $cate_id2), $quantity);81 $objCartSess->addProduct($product_class_id, $quantity, $product_type_id); 84 82 } 85 83 SC_Response_Ex::sendRedirect(CART_URLPATH); … … 103 101 $order_count = $objQuery->count("dtb_order", "order_id = ? and customer_id = ?", array($order_id, $customer_id)); 104 102 if ($order_count != 1) return array(); 105 $col = "product_id, product_class_id, quantity"; 103 $col = "product_class_id, quantity, product_type_id"; 104 $table = "dtb_order_detail LEFT JOIN dtb_products_class USING(product_class_id)"; 106 105 $where = "order_id = ?"; 107 106 $objQuery->setOrder("product_class_id"); 108 $arrRet = $objQuery->select($col, "dtb_order_detail", $where, array($order_id));107 $arrRet = $objQuery->select($col, $table, $where, array($order_id)); 109 108 return $arrRet; 110 109 }
Note: See TracChangeset
for help on using the changeset viewer.