Changeset 21526 for branches/version-2_12-dev/data/class/pages/shopping
- Timestamp:
- 2012/02/17 00:50:05 (12 years ago)
- Location:
- branches/version-2_12-dev/data/class/pages/shopping
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping.php
r21515 r21526 110 110 111 111 switch ($this->getMode()) { 112 // ログイン実行 113 case 'login': 114 $this->lfInitLoginFormParam($objFormParam); 115 $objFormParam->setParam($_POST); 116 $objFormParam->trimParam(); 117 $objFormParam->convParam(); 118 $objFormParam->toLower('login_email'); 119 $this->arrErr = $objFormParam->checkError(); 120 121 // ログイン判定 122 if (SC_Utils_Ex::isBlank($this->arrErr) 123 && $this->doLogin($objCustomer, 124 $objFormParam->getValue('login_email'), 125 $objFormParam->getValue('login_pass'))) { 126 127 // モバイルサイトで携帯アドレスの登録が無い場合、携帯アドレス登録ページへ遷移 128 if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 129 if ($this->hasEmailMobile($objCustomer) == false) { 130 SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 112 // ログイン実行 113 case 'login': 114 $this->lfInitLoginFormParam($objFormParam); 115 $objFormParam->setParam($_POST); 116 $objFormParam->trimParam(); 117 $objFormParam->convParam(); 118 $objFormParam->toLower('login_email'); 119 $this->arrErr = $objFormParam->checkError(); 120 121 // ログイン判定 122 if (SC_Utils_Ex::isBlank($this->arrErr) 123 && $this->doLogin($objCustomer, 124 $objFormParam->getValue('login_email'), 125 $objFormParam->getValue('login_pass'))) { 126 127 // モバイルサイトで携帯アドレスの登録が無い場合、携帯アドレス登録ページへ遷移 128 if (SC_Display_Ex::detectDevice() == DEVICE_TYPE_MOBILE) { 129 if ($this->hasEmailMobile($objCustomer) == false) { 130 SC_Response_Ex::sendRedirectFromUrlPath('entry/email_mobile.php'); 131 exit; 132 } 133 } 134 // スマートフォンの場合はログイン成功を返す 135 elseif (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 136 echo SC_Utils_Ex::jsonEncode(array('success' => 137 $this->getNextLocation($this->cartKey, $this->tpl_uniqid, 138 $objCustomer, $objPurchase, 139 $objSiteSess))); 131 140 exit; 132 141 } 133 } 134 // スマートフォンの場合はログイン成功を返す 135 elseif (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 136 echo SC_Utils_Ex::jsonEncode(array('success' => 137 $this->getNextLocation($this->cartKey, $this->tpl_uniqid, 138 $objCustomer, $objPurchase, 139 $objSiteSess))); 142 143 SC_Response_Ex::sendRedirect( 144 $this->getNextLocation($this->cartKey, $this->tpl_uniqid, 145 $objCustomer, $objPurchase, 146 $objSiteSess)); 140 147 exit; 141 148 } 142 143 SC_Response_Ex::sendRedirect( 144 $this->getNextLocation($this->cartKey, $this->tpl_uniqid, 145 $objCustomer, $objPurchase, 146 $objSiteSess)); 147 exit; 148 } 149 // ログインに失敗した場合 150 else { 151 // 仮登録の場合 152 if ($this->checkTempCustomer($objFormParam->getValue('login_email'))) { 153 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 154 echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 155 exit; 149 // ログインに失敗した場合 150 else { 151 // 仮登録の場合 152 if ($this->checkTempCustomer($objFormParam->getValue('login_email'))) { 153 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 154 echo $this->lfGetErrorMessage(TEMP_LOGIN_ERROR); 155 exit; 156 } else { 157 SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 158 exit; 159 } 156 160 } else { 157 SC_Utils_Ex::sfDispSiteError(TEMP_LOGIN_ERROR); 158 exit; 161 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 162 echo $this->lfGetErrorMessage(SITE_LOGIN_ERROR); 163 exit; 164 } else { 165 SC_Utils_Ex::sfDispSiteError(SITE_LOGIN_ERROR); 166 exit; 167 } 159 168 } 160 } else { 161 if (SC_Display_Ex::detectDevice() === DEVICE_TYPE_SMARTPHONE) { 162 echo $this->lfGetErrorMessage(SITE_LOGIN_ERROR); 163 exit; 164 } else { 165 SC_Utils_Ex::sfDispSiteError(SITE_LOGIN_ERROR); 166 exit; 167 } 168 } 169 } 170 break; 171 172 // お客様情報登録 173 case 'nonmember_confirm': 174 $this->tpl_mainpage = $nonmember_mainpage; 175 $this->tpl_title = $nonmember_title; 176 $this->lfInitParam($objFormParam); 177 $objFormParam->setParam($_POST); 178 $this->arrErr = $this->lfCheckError($objFormParam); 179 180 if (SC_Utils_Ex::isBlank($this->arrErr)) { 181 $objPurchase->unsetShippingTemp(); 182 $this->lfRegistData($this->tpl_uniqid, $objPurchase, 183 $objCustomer, $objFormParam); 184 185 $objSiteSess->setRegistFlag(); 186 SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URLPATH); 187 exit; 188 } 189 break; 190 191 // 前のページに戻る 192 case 'return': 193 SC_Response_Ex::sendRedirect(CART_URLPATH); 194 exit; 195 break; 196 197 // 複数配送ページへ遷移 198 case 'multiple': 199 // 複数配送先指定が無効な場合はエラー 200 if (USE_MULTIPLE_SHIPPING === false) { 201 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, '', true); 202 exit; 203 } 204 205 $this->lfInitParam($objFormParam); 206 $objFormParam->setParam($_POST); 207 $this->arrErr = $this->lfCheckError($objFormParam); 208 209 if (SC_Utils_Ex::isBlank($this->arrErr)) { 210 $objPurchase->unsetShippingTemp(); 211 $this->lfRegistData($this->tpl_uniqid, $objPurchase, 212 $objCustomer, $objFormParam, true); 213 214 $objSiteSess->setRegistFlag(); 215 SC_Response_Ex::sendRedirect(MULTIPLE_URLPATH); 216 exit; 217 } 218 $this->tpl_mainpage = $nonmember_mainpage; 219 $this->tpl_title = $nonmember_title; 220 break; 221 222 // お客様情報入力ページの表示 223 case 'nonmember': 224 $this->tpl_mainpage = $nonmember_mainpage; 225 $this->tpl_title = $nonmember_title; 226 $this->lfInitParam($objFormParam); 227 // ※breakなし 228 229 default: 230 // 前のページから戻ってきた場合は, お客様情報入力ページ 231 if (isset($_GET['from']) && $_GET['from'] == 'nonmember') { 169 } 170 break; 171 172 // お客様情報登録 173 case 'nonmember_confirm': 232 174 $this->tpl_mainpage = $nonmember_mainpage; 233 175 $this->tpl_title = $nonmember_title; 234 176 $this->lfInitParam($objFormParam); 235 } 236 // 通常はログインページ 237 else { 238 $this->lfInitLoginFormParam($objFormParam); 239 } 240 241 $this->setFormParams($objFormParam, $objPurchase, $this->tpl_uniqid); 177 $objFormParam->setParam($_POST); 178 $this->arrErr = $this->lfCheckError($objFormParam); 179 180 if (SC_Utils_Ex::isBlank($this->arrErr)) { 181 $objPurchase->unsetShippingTemp(); 182 $this->lfRegistData($this->tpl_uniqid, $objPurchase, 183 $objCustomer, $objFormParam); 184 185 $objSiteSess->setRegistFlag(); 186 SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URLPATH); 187 exit; 188 } 189 break; 190 191 // 前のページに戻る 192 case 'return': 193 SC_Response_Ex::sendRedirect(CART_URLPATH); 194 exit; 195 break; 196 197 // 複数配送ページへ遷移 198 case 'multiple': 199 // 複数配送先指定が無効な場合はエラー 200 if (USE_MULTIPLE_SHIPPING === false) { 201 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, '', true); 202 exit; 203 } 204 205 $this->lfInitParam($objFormParam); 206 $objFormParam->setParam($_POST); 207 $this->arrErr = $this->lfCheckError($objFormParam); 208 209 if (SC_Utils_Ex::isBlank($this->arrErr)) { 210 $objPurchase->unsetShippingTemp(); 211 $this->lfRegistData($this->tpl_uniqid, $objPurchase, 212 $objCustomer, $objFormParam, true); 213 214 $objSiteSess->setRegistFlag(); 215 SC_Response_Ex::sendRedirect(MULTIPLE_URLPATH); 216 exit; 217 } 218 $this->tpl_mainpage = $nonmember_mainpage; 219 $this->tpl_title = $nonmember_title; 220 break; 221 222 // お客様情報入力ページの表示 223 case 'nonmember': 224 $this->tpl_mainpage = $nonmember_mainpage; 225 $this->tpl_title = $nonmember_title; 226 $this->lfInitParam($objFormParam); 227 // ※breakなし 228 229 default: 230 // 前のページから戻ってきた場合は, お客様情報入力ページ 231 if (isset($_GET['from']) && $_GET['from'] == 'nonmember') { 232 $this->tpl_mainpage = $nonmember_mainpage; 233 $this->tpl_title = $nonmember_title; 234 $this->lfInitParam($objFormParam); 235 } 236 // 通常はログインページ 237 else { 238 $this->lfInitLoginFormParam($objFormParam); 239 } 240 241 $this->setFormParams($objFormParam, $objPurchase, $this->tpl_uniqid); 242 break; 242 243 } 243 244 … … 340 341 function getNextLocation($product_type_id, $uniqid, &$objCustomer, &$objPurchase, &$objSiteSess) { 341 342 switch ($product_type_id) { 342 case PRODUCT_TYPE_DOWNLOAD: 343 $objPurchase->saveOrderTemp($uniqid, array(), $objCustomer); 344 $objSiteSess->setRegistFlag(); 345 return 'payment.php'; 346 break; 347 348 case PRODUCT_TYPE_NORMAL: 349 default: 350 return 'deliv.php'; 343 case PRODUCT_TYPE_DOWNLOAD: 344 $objPurchase->saveOrderTemp($uniqid, array(), $objCustomer); 345 $objSiteSess->setRegistFlag(); 346 return 'payment.php'; 347 348 case PRODUCT_TYPE_NORMAL: 349 default: 350 return 'deliv.php'; 351 351 } 352 352 } … … 497 497 function doLogin(&$objCustomer, $login_email, $login_pass) { 498 498 switch (SC_Display_Ex::detectDevice()) { 499 case DEVICE_TYPE_MOBILE: 500 if(!$objCustomer->getCustomerDataFromMobilePhoneIdPass($login_pass) && 501 !$objCustomer->getCustomerDataFromEmailPass($login_pass, $login_email, true)) { 502 return false; 503 } else { 504 $objCustomer->updateMobilePhoneId(); 505 return true; 506 } 507 break; 508 509 case DEVICE_TYPE_SMARTPHONE: 510 case DEVICE_TYPE_PC: 511 default: 512 if (!$objCustomer->getCustomerDataFromEmailPass($login_pass, $login_email)) { 513 return false; 514 } else { 515 return true; 516 } 499 case DEVICE_TYPE_MOBILE: 500 if(!$objCustomer->getCustomerDataFromMobilePhoneIdPass($login_pass) && 501 !$objCustomer->getCustomerDataFromEmailPass($login_pass, $login_email, true)) { 502 return false; 503 } else { 504 $objCustomer->updateMobilePhoneId(); 505 return true; 506 } 507 break; 508 509 case DEVICE_TYPE_SMARTPHONE: 510 case DEVICE_TYPE_PC: 511 default: 512 if (!$objCustomer->getCustomerDataFromEmailPass($login_pass, $login_email)) { 513 return false; 514 } else { 515 return true; 516 } 517 break; 517 518 } 518 519 } -
branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping_Confirm.php
r21514 r21526 130 130 131 131 switch ($this->getMode()) { 132 // 前のページに戻る133 case 'return':134 // 正常な推移であることを記録しておく135 $objSiteSess->setRegistFlag();136 SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URLPATH);137 exit;138 break;139 case 'confirm':140 /*141 * 決済モジュールで必要なため, 受注番号を取得142 */143 $this->arrForm['order_id'] = $objQuery->nextval('dtb_order_order_id');144 $_SESSION['order_id'] = $this->arrForm['order_id'];132 // 前のページに戻る 133 case 'return': 134 // 正常な推移であることを記録しておく 135 $objSiteSess->setRegistFlag(); 136 SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URLPATH); 137 exit; 138 break; 139 case 'confirm': 140 /* 141 * 決済モジュールで必要なため, 受注番号を取得 142 */ 143 $this->arrForm['order_id'] = $objQuery->nextval('dtb_order_order_id'); 144 $_SESSION['order_id'] = $this->arrForm['order_id']; 145 145 146 // 集計結果を受注一時テーブルに反映147 $objPurchase->saveOrderTemp($this->tpl_uniqid, $this->arrForm,148 $objCustomer);146 // 集計結果を受注一時テーブルに反映 147 $objPurchase->saveOrderTemp($this->tpl_uniqid, $this->arrForm, 148 $objCustomer); 149 149 150 // 正常に登録されたことを記録しておく151 $objSiteSess->setRegistFlag();150 // 正常に登録されたことを記録しておく 151 $objSiteSess->setRegistFlag(); 152 152 153 // 決済モジュールを使用する場合154 if ($this->use_module) {155 $objPurchase->completeOrder(ORDER_PENDING);156 SC_Response_Ex::sendRedirect(SHOPPING_MODULE_URLPATH);157 }158 // 購入完了ページ159 else {160 $objPurchase->completeOrder(ORDER_NEW);161 $objPurchase->sendOrderMail($this->arrForm['order_id']);162 SC_Response_Ex::sendRedirect(SHOPPING_COMPLETE_URLPATH);163 }164 exit;165 break;166 default:167 break;153 // 決済モジュールを使用する場合 154 if ($this->use_module) { 155 $objPurchase->completeOrder(ORDER_PENDING); 156 SC_Response_Ex::sendRedirect(SHOPPING_MODULE_URLPATH); 157 } 158 // 購入完了ページ 159 else { 160 $objPurchase->completeOrder(ORDER_NEW); 161 $objPurchase->sendOrderMail($this->arrForm['order_id']); 162 SC_Response_Ex::sendRedirect(SHOPPING_COMPLETE_URLPATH); 163 } 164 exit; 165 break; 166 default: 167 break; 168 168 } 169 169 } -
branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping_Deliv.php
r21514 r21526 106 106 107 107 switch ($this->getMode()) { 108 // 削除 109 case 'delete': 110 $this->doDelete($arrForm['other_deliv_id']); 111 break; 112 113 // 会員登録住所に送る 114 case 'customer_addr': 115 $objPurchase->unsetShippingTemp(); 116 117 if ($this->registerDeliv($arrForm['deliv_check'], $this->tpl_uniqid, 118 $objPurchase, $objCustomer)) { 119 $objSiteSess->setRegistFlag(); 120 SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URLPATH); 108 // 削除 109 case 'delete': 110 $this->doDelete($arrForm['other_deliv_id']); 111 break; 112 113 // 会員登録住所に送る 114 case 'customer_addr': 115 $objPurchase->unsetShippingTemp(); 116 117 if ($this->registerDeliv($arrForm['deliv_check'], $this->tpl_uniqid, 118 $objPurchase, $objCustomer)) { 119 $objSiteSess->setRegistFlag(); 120 SC_Response_Ex::sendRedirect(SHOPPING_PAYMENT_URLPATH); 121 exit; 122 123 } else { 124 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, '', true); 125 } 126 break; 127 128 // 前のページに戻る 129 case 'return': 130 // 確認ページへ移動 131 SC_Response_Ex::sendRedirect(CART_URLPATH); 121 132 exit; 122 123 } else { 124 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, '', true); 125 } 126 break; 127 128 // 前のページに戻る 129 case 'return': 130 // 確認ページへ移動 131 SC_Response_Ex::sendRedirect(CART_URLPATH); 132 exit; 133 break; 134 135 // お届け先複数指定 136 case 'multiple': 137 // 複数配送先指定が無効な場合はエラー 138 if (USE_MULTIPLE_SHIPPING === false) { 139 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, '', true); 133 break; 134 135 // お届け先複数指定 136 case 'multiple': 137 // 複数配送先指定が無効な場合はエラー 138 if (USE_MULTIPLE_SHIPPING === false) { 139 SC_Utils_Ex::sfDispSiteError(PAGE_ERROR, '', true); 140 exit; 141 } 142 143 SC_Response_Ex::sendRedirect('multiple.php'); 140 144 exit; 141 } 142 143 SC_Response_Ex::sendRedirect('multiple.php'); 144 exit; 145 break; 145 break; 146 default: 147 break; 146 148 } 147 149 -
branches/version-2_12-dev/data/class/pages/shopping/LC_Page_Shopping_Payment.php
r21514 r21526 130 130 131 131 switch ($this->getMode()) { 132 /* 133 * 配送業者選択時のアクション 134 * モバイル端末以外の場合は, JSON 形式のデータを出力し, ajax で取得する. 135 */ 136 case 'select_deliv': 137 $this->setFormParams($objFormParam, $arrOrderTemp, true, $this->arrShipping); 138 $objFormParam->setParam($_POST); 139 $this->arrErr = $objFormParam->checkError(); 140 if (SC_Utils_Ex::isBlank($this->arrErr)) { 132 /* 133 * 配送業者選択時のアクション 134 * モバイル端末以外の場合は, JSON 形式のデータを出力し, ajax で取得する. 135 */ 136 case 'select_deliv': 137 $this->setFormParams($objFormParam, $arrOrderTemp, true, $this->arrShipping); 138 $objFormParam->setParam($_POST); 139 $this->arrErr = $objFormParam->checkError(); 140 if (SC_Utils_Ex::isBlank($this->arrErr)) { 141 $deliv_id = $objFormParam->getValue('deliv_id'); 142 $arrSelectedDeliv = $this->getSelectedDeliv($objPurchase, $objCartSess, $deliv_id); 143 $arrSelectedDeliv['error'] = false; 144 } else { 145 $arrSelectedDeliv = array('error' => true); 146 $this->tpl_mainpage = 'shopping/select_deliv.tpl'; // モバイル用 147 } 148 149 if (SC_Display_Ex::detectDevice() != DEVICE_TYPE_MOBILE) { 150 echo SC_Utils_Ex::jsonEncode($arrSelectedDeliv); 151 exit; 152 } else { 153 $this->arrPayment = $arrSelectedDeliv['arrPayment']; 154 $this->arrDelivTime = $arrSelectedDeliv['arrDelivTime']; 155 } 156 break; 157 158 // 登録処理 159 case 'confirm': 160 // パラメーター情報の初期化 161 $this->setFormParams($objFormParam, $_POST, false, $this->arrShipping); 162 141 163 $deliv_id = $objFormParam->getValue('deliv_id'); 142 $arrSelectedDeliv = $this->getSelectedDeliv($objPurchase, $objCartSess, $deliv_id);143 $arrSelectedDeliv['error'] = false;144 } else {145 $arrSelectedDeliv = array('error' => true);146 $this->tpl_mainpage = 'shopping/select_deliv.tpl'; // モバイル用147 }148 149 if (SC_Display_Ex::detectDevice() != DEVICE_TYPE_MOBILE) {150 echo SC_Utils_Ex::jsonEncode($arrSelectedDeliv);151 exit;152 } else {153 $this->arrPayment = $arrSelectedDeliv['arrPayment'];154 $this->arrDelivTime = $arrSelectedDeliv['arrDelivTime'];155 }156 break;157 158 // 登録処理159 case 'confirm':160 // パラメーター情報の初期化161 $this->setFormParams($objFormParam, $_POST, false, $this->arrShipping);162 163 $deliv_id = $objFormParam->getValue('deliv_id');164 $arrSelectedDeliv = $this->getSelectedDeliv($objPurchase, $objCartSess, $deliv_id);165 $this->arrPayment = $arrSelectedDeliv['arrPayment'];166 $this->arrDelivTime = $arrSelectedDeliv['arrDelivTime'];167 168 $this->arrErr = $this->lfCheckError($objFormParam, $this->arrPrices['subtotal'], $this->tpl_user_point);169 170 if (SC_Utils_Ex::isBlank($this->arrErr)) {171 $this->saveShippings($objFormParam, $this->arrDelivTime);172 $this->lfRegistData($this->tpl_uniqid, $objFormParam->getDbArray(), $objPurchase, $this->arrPayment);173 174 // 正常に登録されたことを記録しておく175 $objSiteSess->setRegistFlag();176 // 確認ページへ移動177 SC_Response_Ex::sendRedirect(SHOPPING_CONFIRM_URLPATH);178 exit;179 } else {180 // 受注一時テーブルからの情報を格納181 $this->img_show = $arrSelectedDeliv['img_show'];182 $objFormParam->setParam($objPurchase->getOrderTemp($this->tpl_uniqid));183 }184 break;185 186 // 前のページに戻る187 case 'return':188 189 // 正常な推移であることを記録しておく190 $objSiteSess->setRegistFlag();191 SC_Response_Ex::sendRedirect(SHOPPING_URL);192 exit;193 break;194 195 default:196 // FIXME 前のページから戻ってきた場合は別パラメーター(mode)で処理分岐する必要があるのかもしれない197 $this->setFormParams($objFormParam, $arrOrderTemp, false, $this->arrShipping);198 199 if (!$this->is_single_deliv) {200 $deliv_id = $objFormParam->getValue('deliv_id');201 } else {202 $deliv_id = $this->arrDeliv[0]['deliv_id'];203 }204 205 if (!SC_Utils_Ex::isBlank($deliv_id)) {206 $objFormParam->setValue('deliv_id', $deliv_id);207 164 $arrSelectedDeliv = $this->getSelectedDeliv($objPurchase, $objCartSess, $deliv_id); 208 165 $this->arrPayment = $arrSelectedDeliv['arrPayment']; 209 166 $this->arrDelivTime = $arrSelectedDeliv['arrDelivTime']; 210 $this->img_show = $arrSelectedDeliv['img_show']; 211 } 212 break; 167 168 $this->arrErr = $this->lfCheckError($objFormParam, $this->arrPrices['subtotal'], $this->tpl_user_point); 169 170 if (SC_Utils_Ex::isBlank($this->arrErr)) { 171 $this->saveShippings($objFormParam, $this->arrDelivTime); 172 $this->lfRegistData($this->tpl_uniqid, $objFormParam->getDbArray(), $objPurchase, $this->arrPayment); 173 174 // 正常に登録されたことを記録しておく 175 $objSiteSess->setRegistFlag(); 176 // 確認ページへ移動 177 SC_Response_Ex::sendRedirect(SHOPPING_CONFIRM_URLPATH); 178 exit; 179 } else { 180 // 受注一時テーブルからの情報を格納 181 $this->img_show = $arrSelectedDeliv['img_show']; 182 $objFormParam->setParam($objPurchase->getOrderTemp($this->tpl_uniqid)); 183 } 184 break; 185 186 // 前のページに戻る 187 case 'return': 188 189 // 正常な推移であることを記録しておく 190 $objSiteSess->setRegistFlag(); 191 SC_Response_Ex::sendRedirect(SHOPPING_URL); 192 exit; 193 break; 194 195 default: 196 // FIXME 前のページから戻ってきた場合は別パラメーター(mode)で処理分岐する必要があるのかもしれない 197 $this->setFormParams($objFormParam, $arrOrderTemp, false, $this->arrShipping); 198 199 if (!$this->is_single_deliv) { 200 $deliv_id = $objFormParam->getValue('deliv_id'); 201 } else { 202 $deliv_id = $this->arrDeliv[0]['deliv_id']; 203 } 204 205 if (!SC_Utils_Ex::isBlank($deliv_id)) { 206 $objFormParam->setValue('deliv_id', $deliv_id); 207 $arrSelectedDeliv = $this->getSelectedDeliv($objPurchase, $objCartSess, $deliv_id); 208 $this->arrPayment = $arrSelectedDeliv['arrPayment']; 209 $this->arrDelivTime = $arrSelectedDeliv['arrDelivTime']; 210 $this->img_show = $arrSelectedDeliv['img_show']; 211 } 212 break; 213 213 } 214 214 … … 445 445 function getMobileMainpage($is_single_deliv = true, $mode) { 446 446 switch ($mode) { 447 case 'select_deliv': 448 return 'shopping/payment.tpl'; 449 break; 450 451 case 'confirm': 452 case 'return': 453 default: 454 if ($is_single_deliv) { 447 case 'select_deliv': 455 448 return 'shopping/payment.tpl'; 456 } else { 457 return 'shopping/select_deliv.tpl'; 458 } 449 450 case 'confirm': 451 case 'return': 452 default: 453 if ($is_single_deliv) { 454 return 'shopping/payment.tpl'; 455 } else { 456 return 'shopping/select_deliv.tpl'; 457 } 458 break; 459 459 } 460 460 }
Note: See TracChangeset
for help on using the changeset viewer.