Ignore:
Timestamp:
2010/10/20 19:13:15 (10 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20101019060210-f9ll2iywezf74j7f
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/SC_Product.php 18277@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fcomu-ver2%2Fdata%2Fclass%2FSC_Product.php
data/class/helper/SC_Helper_DB.php 15176@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fhelper%2FSC_Helper_DB.php
data/class/helper/SC_Helper_Purchase.php sc_helper_purchase.p-20101020100530-jyaoa7ch9pdfjqzp-1
data/class/pages/shopping/LC_Page_Shopping_Complete.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Complete.php
data/class/pages/shopping/LC_Page_Shopping_Confirm.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Confirm.php
data/class/pages/shopping/LC_Page_Shopping_Payment.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Payment.php
data/class_extends/helper_extends/SC_Helper_Purchase_Ex.php sc_helper_purchase_e-20101020100531-2rjt2ynuw2t3vx6n-1
data/require_classes.php 18500@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_4-dev%2Fdata%2Frequire_classes.php
bzr:mapping-version:
v4
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20101020101311-splvyjvs8i4nlqbp
bzr:revno:
2340
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:timestamp:
2010-10-20 19:13:11.368999958 +0900
bzr:user-agent:
bzr2.2.0+bzr-svn1.0.3
svn:original-date:
2010-10-20T10:13:11.369000Z
Message:

ページ間の遷移方法の改善(#783)

  • PC版のみ実装
  • 購入関連の処理を SC_Helper_Purchase へ移動
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Confirm.php

    r18859 r18860  
    8383        $this->cartdown = $objDb->chkCartDown($objCartSess); 
    8484 
    85         // カート集計処理 
     85 
    8686        $this->cartKey = $_SESSION['cartKey']; 
    87         $cartItems = $objCartSess->getCartList($this->cartKey); 
    88         $i = 0; 
    89         // TODO リファクタリング 
    90         foreach (array_keys($cartItems) as $itemKey) { 
    91             $cartItem =& $cartItems[$itemKey]; 
    92             if (!SC_Utils_Ex::isBlank($cartItem)) { 
    93                 $this->cartItems[$i] =& $cartItem; 
    94                 $i++; 
    95             } 
    96         } 
     87 
     88        // カート内商品のチェック 
    9789        $this->tpl_message = $objCartSess->checkProducts($this->cartKey); 
     90        if (strlen($this->tpl_message) >= 1) { 
     91            SC_Utils_Ex::sfDispSiteError(SOLD_OUT, '', true); 
     92        } 
     93 
     94        // カートの商品を取得 
     95        $this->cartItems = $objCartSess->getCartList($this->cartKey); 
     96        // 合計金額 
    9897        $this->tpl_total_pretax[$this->cartKey] = $objCartSess->getAllProductsTotal($this->cartKey); 
     98        // 税額 
    9999        $this->tpl_total_tax[$this->cartKey] = $objCartSess->getAllProductsTax($this->cartKey); 
    100100        // ポイント合計 
    101101        $this->tpl_total_point[$this->cartKey] = $objCartSess->getAllProductsPoint($this->cartKey); 
    102  
    103         if (strlen($this->tpl_message) >= 1) { 
    104             SC_Utils_Ex::sfDispSiteError(SOLD_OUT, '', true); 
    105         } 
    106102 
    107103        // TODO リファクタリング 
     
    159155                $this->sendRedirect($this->getLocation(URL_SHOP_MODULE)); 
    160156            }else{ 
     157                // 受注を完了し, 購入完了ページへ 
     158                $objPurchase = new SC_Helper_Purchase_Ex(); 
     159                $objPurchase->completeOrder(); 
    161160                $this->sendRedirect($this->getLocation(URL_SHOP_COMPLETE)); 
    162161            } 
Note: See TracChangeset for help on using the changeset viewer.