- Timestamp:
- 2010/09/27 14:24:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Order.php
r18701 r18827 65 65 for($num = 0; $num < count($arrDisp); $num++) { 66 66 $product_id = $arrDisp[$num]['product_id']; 67 $product_class_id = $arrDisp[$num]['product_class_id']; 67 68 $cate_id1 = $arrDisp[$num]['classcategory_id1']; 68 69 $cate_id2 = $arrDisp[$num]['classcategory_id2']; 69 70 $quantity = $arrDisp[$num]['quantity']; 70 71 71 $objCartSess->addProduct(array($product_id, $ cate_id1, $cate_id2), $quantity);72 $objCartSess->addProduct(array($product_id, $product_class_id, $cate_id1, $cate_id2), $quantity); 72 73 } 73 74 $this->sendRedirect($this->getLocation(URL_CART_TOP)); … … 102 103 for($num = 0; $num < count($arrDisp); $num++) { 103 104 $product_id = $arrDisp[$num]['product_id']; 105 $product_class_id = $arrDisp[$num]['product_class_id']; 104 106 $cate_id1 = $arrDisp[$num]['classcategory_id1']; 105 107 $cate_id2 = $arrDisp[$num]['classcategory_id2']; 106 108 $quantity = $arrDisp[$num]['quantity']; 107 109 108 $objCartSess->addProduct(array($product_id, $ cate_id1, $cate_id2), $quantity);110 $objCartSess->addProduct(array($product_id, $product_class_id, $cate_id1, $cate_id2), $quantity); 109 111 } 110 112 $this->sendRedirect($this->getLocation(MOBILE_URL_CART_TOP), true); … … 128 130 $order_count = $objQuery->count("dtb_order", "order_id = ? and customer_id = ?", array($order_id, $customer_id)); 129 131 if ($order_count != 1) return array(); 130 $col = "product_id, classcategory_id1, classcategory_id2, quantity";132 $col = "product_id, product_class_id, quantity"; 131 133 $where = "order_id = ?"; 132 $objQuery->setOrder(" classcategory_id1, classcategory_id2");134 $objQuery->setOrder("product_class_id"); 133 135 $arrRet = $objQuery->select($col, "dtb_order_detail", $where, array($order_id)); 134 136 return $arrRet; 135 137 } 136 138 137 139 } 138 140 ?>
Note: See TracChangeset
for help on using the changeset viewer.