- Timestamp:
- 2011/01/12 12:12:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/mypage/LC_Page_Mypage_Order.php
r19833 r19881 87 87 88 88 /** 89 * モバイルページを初期化する.90 *91 * @return void92 */93 function mobileInit() {94 $this->init();95 }96 97 /**98 * Page のプロセス(モバイル).99 *100 * @return void101 */102 function mobileProcess() {103 parent::mobileProcess();104 $this->mobileAction();105 $this->sendResponse();106 }107 108 /**109 * Page のAction(モバイル).110 *111 * @return void112 */113 function mobileAction() {114 115 $objCustomer = new SC_Customer();116 $objCartSess = new SC_CartSession();117 118 //受注詳細データの取得119 $arrDisp = $this->lfGetOrderDetail($_POST['order_id']);120 121 //ログインしていない、またはDBに情報が無い場合122 if (!$objCustomer->isLoginSuccess(true) or count($arrDisp) == 0){123 SC_Utils_Ex::sfDispSiteError(CUSTOMER_ERROR);124 }125 126 for($num = 0; $num < count($arrDisp); $num++) {127 $product_id = $arrDisp[$num]['product_id'];128 $product_class_id = $arrDisp[$num]['product_class_id'];129 $cate_id1 = $arrDisp[$num]['classcategory_id1'];130 $cate_id2 = $arrDisp[$num]['classcategory_id2'];131 $quantity = $arrDisp[$num]['quantity'];132 133 $objCartSess->addProduct(array($product_id, $product_class_id, $cate_id1, $cate_id2), $quantity);134 }135 $this->objDisplay->redirect($this->getLocation(MOBILE_CART_URL_PATH));136 }137 138 /**139 89 * デストラクタ. 140 90 *
Note: See TracChangeset
for help on using the changeset viewer.