Changeset 15078 for branches/feature-module-update/html/mobile/cart
- Timestamp:
- 2007/07/20 15:58:59 (16 years ago)
- Location:
- branches/feature-module-update
- Files:
-
- 1 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update
-
Property
svn:ignore
set to
.cache
.settings
.projectOptions
-
Property
svn:ignore
set to
-
branches/feature-module-update/html/mobile/cart/index.php
r12157 r15078 17 17 var $tpl_message; 18 18 function LC_Page() { 19 /** ɬ¤º»ØÄꤹ¤ë**/20 $this->tpl_css = '/css/layout/cartin/index.css'; // ¥á¥¤¥óCSS¥Ñ¥¹21 /** ɬ¤º»ØÄꤹ¤ë**/22 $this->tpl_mainpage = 'cart/index.tpl'; // ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È23 $this->tpl_title = " ¶ºÞ¤ÎÃæ¤ò¸«¤ë";19 /** 必ず指定する **/ 20 $this->tpl_css = '/css/layout/cartin/index.css'; // メインCSSパス 21 /** 必ず指定する **/ 22 $this->tpl_mainpage = 'cart/index.tpl'; // メインテンプレート 23 $this->tpl_title = "カゴの中を見る"; 24 24 } 25 25 } 26 26 27 // Ç㤤ʪ¤ò³¤±¤ë¾ì¹ç27 // 買い物を続ける場合 28 28 if($_REQUEST['continue']) { 29 29 header("Location: " . gfAddSessionId(MOBILE_URL_SITE_TOP) ); … … 37 37 $objSiteInfo = $objView->objSiteInfo; 38 38 $objCustomer = new SC_Customer(); 39 // ´ðËܾðÊó¤Î¼èÆÀ39 // 基本情報の取得 40 40 $arrInfo = $objSiteInfo->data; 41 41 42 // ¾¦ÉÊ¹ØÆþÃæ¤Ë¥«¡¼¥ÈÆâÍÆ¤¬Êѹ¹¤µ¤ì¤¿¡£42 // 商品購入中にカート内容が変更された。 43 43 if($objCartSess->getCancelPurchase()) { 44 $objPage->tpl_message = " ¾¦ÉÊ¹ØÆþÃæ¤Ë¶°ÄÆâÍÆ¤¬Êѹ¹¤µ¤ì¤Þ¤·¤¿¤Î¤Ç¤¤ª¼ê¿ô¤Ç¤¹¤¬¹ØÆþ¼ê³¤¤ò¤ä¤êľ¤·¤Æ²¼¤µ¤¤¡";44 $objPage->tpl_message = "商品購入中にカート内容が変更されましたので、お手数ですが購入手続きをやり直して下さい。"; 45 45 } 46 46 47 47 switch($_POST['mode']) { 48 48 case 'confirm': 49 // ¥«¡¼¥ÈÆâ¾ðÊó¤Î¼èÆÀ49 // カート内情報の取得 50 50 $arrRet = $objCartSess->getCartList(); 51 51 $max = count($arrRet); 52 52 $cnt = 0; 53 53 for ($i = 0; $i < $max; $i++) { 54 // ¾¦Éʵ¬³Ê¾ðÊó¤Î¼èÆÀ54 // 商品規格情報の取得 55 55 $arrData = sfGetProductsClass($arrRet[$i]['id']); 56 // DB ¤Ë¸ºß¤¹¤ë¾¦ÉÊ56 // DBに存在する商品 57 57 if($arrData != "") { 58 58 $cnt++; 59 59 } 60 60 } 61 // ¥«¡¼¥È¾¦Éʤ¬1·ï°Ê¾å¸ºß¤¹¤ë¾ì¹ç61 // カート商品が1件以上存在する場合 62 62 if($cnt > 0) { 63 // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµÏ¿¤·¤Æ¤ª¤¯63 // 正常に登録されたことを記録しておく 64 64 $objSiteSess->setRegistFlag(); 65 65 $pre_uniqid = $objSiteSess->getUniqId(); 66 // Ãíʸ°ì»þID¤Îȯ¹Ô66 // 注文一時IDの発行 67 67 $objSiteSess->setUniqId(); 68 68 $uniqid = $objSiteSess->getUniqId(); 69 // ¥¨¥é¡¼¥ê¥È¥é¥¤¤Ê¤É¤Ç´û¤Ëuniqid¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ï¡¢ÀßÄê¤ò°ú¤·Ñ¤°69 // エラーリトライなどで既にuniqidが存在する場合は、設定を引き継ぐ 70 70 if($pre_uniqid != "") { 71 71 $sqlval['order_temp_id'] = $uniqid; … … 74 74 $objQuery->update("dtb_order_temp", $sqlval, $where, array($pre_uniqid)); 75 75 } 76 // ¥«¡¼¥È¤ò¹ØÆþ¥â¡¼¥É¤ËÀßÄê76 // カートを購入モードに設定 77 77 $objCartSess->saveCurrentCart($uniqid); 78 // ¹ØÆþ¥Ú¡¼¥¸¤Ø78 // 購入ページへ 79 79 header("Location: " . gfAddSessionId(MOBILE_URL_SHOP_TOP)); 80 80 exit; … … 100 100 } 101 101 102 // ¥«¡¼¥È½¸·×½èÍý102 // カート集計処理 103 103 $objPage = sfTotalCart($objPage, $objCartSess, $arrInfo); 104 104 $objPage->arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo, $objCustomer); … … 106 106 $objPage->arrInfo = $arrInfo; 107 107 108 // ¥í¥°¥¤¥óȽÄê108 // ログイン判定 109 109 if($objCustomer->isLoginSuccess()) { 110 110 $objPage->tpl_login = true; … … 113 113 } 114 114 115 // Á÷ÎÁ̵ÎÁ¤Þ¤Ç¤Î¶â³Û¤ò·×»»115 // 送料無料までの金額を計算 116 116 $tpl_deliv_free = $objPage->arrInfo['free_rule'] - $objPage->tpl_total_pretax; 117 117 $objPage->tpl_deliv_free = $tpl_deliv_free; 118 118 119 // Á°ÊǤÎURL¤ò¼èÆÀ119 // 前頁のURLを取得 120 120 $objPage->tpl_prev_url = $objCartSess->getPrevURL(); 121 121
Note: See TracChangeset
for help on using the changeset viewer.