- Timestamp:
- 2010/03/11 10:35:11 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tmp/version-2_5-test/data/class/pages/mypage/LC_Page_Mypage_Order.php
r17680 r18609 52 52 */ 53 53 function process() { 54 $objCustomer = new SC_Customer(); 55 $objCartSess = new SC_CartSession(); 56 57 //受注詳細データの取得 58 $arrDisp = $this->lfGetOrderDetail($_POST['order_id']); 59 60 //ログインしていない、またはDBに情報が無い場合 61 if (!$objCustomer->isLoginSuccess(true) or count($arrDisp) == 0){ 62 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 63 } 64 65 for($num = 0; $num < count($arrDisp); $num++) { 66 $product_id = $arrDisp[$num]['product_id']; 67 $cate_id1 = $arrDisp[$num]['classcategory_id1']; 68 $cate_id2 = $arrDisp[$num]['classcategory_id2']; 69 $quantity = $arrDisp[$num]['quantity']; 70 71 $objCartSess->addProduct(array($product_id, $cate_id1, $cate_id2), $quantity); 72 } 73 $this->sendRedirect($this->getLocation(URL_CART_TOP)); 54 74 } 55 75 … … 77 97 //ログインしていない、またはDBに情報が無い場合 78 98 if (!$objCustomer->isLoginSuccess(true) or count($arrDisp) == 0){ 79 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR , "", false, "", true);99 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR); 80 100 } 81 101
Note: See TracChangeset
for help on using the changeset viewer.