Changeset 11730 for branches/comu/html/cart/index.php
- Timestamp:
- 2007/03/11 06:27:25 (20 years ago)
- File:
-
- 1 edited
-
branches/comu/html/cart/index.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/comu/html/cart/index.php
r11729 r11730 15 15 var $tpl_message; 16 16 function LC_Page() { 17 /** 必ず指定する**/18 $this->tpl_css = URL_DIR.'css/layout/cartin/index.css'; // メインCSSパス19 /** 必ず指定する**/20 $this->tpl_mainpage = 'cart/index.tpl'; // メインテンプレート21 $this->tpl_title = " カゴの中を見る";17 /** ɬ¤º»ØÄꤹ¤ë **/ 18 $this->tpl_css = URL_DIR.'css/layout/cartin/index.css'; // ¥á¥¤¥óCSS¥Ñ¥¹ 19 /** ɬ¤º»ØÄꤹ¤ë **/ 20 $this->tpl_mainpage = 'cart/index.tpl'; // ¥á¥¤¥ó¥Æ¥ó¥×¥ì¡¼¥È 21 $this->tpl_title = "¥«¥´¤ÎÃæ¤ò¸«¤ë"; 22 22 } 23 23 } … … 30 30 $objSiteInfo = $objView->objSiteInfo; 31 31 $objCustomer = new SC_Customer(); 32 // 基本情報の取得32 // ´ðËܾðÊó¤Î¼èÆÀ 33 33 $arrInfo = $objSiteInfo->data; 34 34 35 // 商品購入中にカート内容が変更された。35 // ¾¦ÉÊ¹ØÆþÃæ¤Ë¥«¡¼¥ÈÆâÍÆ¤¬Êѹ¹¤µ¤ì¤¿¡£ 36 36 if($objCartSess->getCancelPurchase()) { 37 $objPage->tpl_message = " 商品購入中にカート内容が変更されましたので、お手数ですが購入手続きをやり直して下さい。";37 $objPage->tpl_message = "¾¦ÉÊ¹ØÆþÃæ¤Ë¥«¡¼¥ÈÆâÍÆ¤¬Êѹ¹¤µ¤ì¤Þ¤·¤¿¤Î¤Ç¡¢¤ª¼ê¿ô¤Ç¤¹¤¬¹ØÆþ¼ê³¤¤ò¤ä¤êľ¤·¤Æ²¼¤µ¤¤¡£"; 38 38 } 39 39 … … 52 52 break; 53 53 case 'confirm': 54 // カート内情報の取得54 // ¥«¡¼¥ÈÆâ¾ðÊó¤Î¼èÆÀ 55 55 $arrRet = $objCartSess->getCartList(); 56 56 $max = count($arrRet); 57 57 $cnt = 0; 58 58 for ($i = 0; $i < $max; $i++) { 59 // 商品規格情報の取得59 // ¾¦Éʵ¬³Ê¾ðÊó¤Î¼èÆÀ 60 60 $arrData = sfGetProductsClass($arrRet[$i]['id']); 61 // DB に存在する商品61 // DB¤Ë¸ºß¤¹¤ë¾¦ÉÊ 62 62 if($arrData != "") { 63 63 $cnt++; 64 64 } 65 65 } 66 // カート商品が1件以上存在する場合66 // ¥«¡¼¥È¾¦Éʤ¬1·ï°Ê¾å¸ºß¤¹¤ë¾ì¹ç 67 67 if($cnt > 0) { 68 // 正常に登録されたことを記録しておく68 // Àµ¾ï¤ËÅÐÏ¿¤µ¤ì¤¿¤³¤È¤òµÏ¿¤·¤Æ¤ª¤¯ 69 69 $objSiteSess->setRegistFlag(); 70 70 $pre_uniqid = $objSiteSess->getUniqId(); 71 // 注文一時IDの発行71 // Ãíʸ°ì»þID¤Îȯ¹Ô 72 72 $objSiteSess->setUniqId(); 73 73 $uniqid = $objSiteSess->getUniqId(); 74 // エラーリトライなどで既にuniqidが存在する場合は、設定を引き継ぐ74 // ¥¨¥é¡¼¥ê¥È¥é¥¤¤Ê¤É¤Ç´û¤Ëuniqid¤¬Â¸ºß¤¹¤ë¾ì¹ç¤Ï¡¢ÀßÄê¤ò°ú¤·Ñ¤° 75 75 if($pre_uniqid != "") { 76 76 $sqlval['order_temp_id'] = $uniqid; … … 79 79 $objQuery->update("dtb_order_temp", $sqlval, $where, array($pre_uniqid)); 80 80 } 81 // カートを購入モードに設定81 // ¥«¡¼¥È¤ò¹ØÆþ¥â¡¼¥É¤ËÀßÄê 82 82 $objCartSess->saveCurrentCart($uniqid); 83 // 購入ページへ83 // ¹ØÆþ¥Ú¡¼¥¸¤Ø 84 84 header("Location: " . URL_SHOP_TOP); 85 85 } … … 89 89 } 90 90 91 // カート集計処理91 // ¥«¡¼¥È½¸·×½èÍý 92 92 $objPage = sfTotalCart($objPage, $objCartSess, $arrInfo); 93 93 $objPage->arrData = sfTotalConfirm($arrData, $objPage, $objCartSess, $arrInfo, $objCustomer); … … 95 95 $objPage->arrInfo = $arrInfo; 96 96 97 // ログイン判定97 // ¥í¥°¥¤¥óȽÄê 98 98 if($objCustomer->isLoginSuccess()) { 99 99 $objPage->tpl_login = true; … … 102 102 } 103 103 104 // 送料無料までの金額を計算104 // Á÷ÎÁ̵ÎÁ¤Þ¤Ç¤Î¶â³Û¤ò·×»» 105 105 $tpl_deliv_free = $objPage->arrInfo['free_rule'] - $objPage->tpl_total_pretax; 106 106 $objPage->tpl_deliv_free = $tpl_deliv_free; 107 107 108 // 前頁のURLを取得108 // Á°ÊǤÎURL¤ò¼èÆÀ 109 109 $objPage->tpl_prev_url = $objCartSess->getPrevURL(); 110 110 111 111 $objView->assignobj($objPage); 112 // フレームを選択(キャンペーンページから遷移なら変更)112 // ¥Õ¥ì¡¼¥à¤òÁªÂò(¥¥ã¥ó¥Ú¡¼¥ó¥Ú¡¼¥¸¤«¤éÁ«°Ü¤Ê¤éÊѹ¹) 113 113 $objCampaignSess->pageView($objView); 114 114
Note: See TracChangeset
for help on using the changeset viewer.
