Changeset 19927


Ignore:
Timestamp:
2011/01/16 15:22:24 (10 years ago)
Author:
nanasess
bzr:base-revision:
nanasess@fsm.ne.jp-20110116051621-bzu2wxdp0g4vfscr
bzr:committer:
Kentaro Ohkouchi <nanasess@fsm.ne.jp>
bzr:file-ids:

data/class/helper/SC_Helper_Purchase.php sc_helper_purchase.p-20101020100530-jyaoa7ch9pdfjqzp-1
data/class/pages/shopping/LC_Page_Shopping_Multiple.php lc_page_shopping_mul-20110109122547-u3fq5xmi1b4jn5n4-2
bzr:mapping-version:
v4
bzr:merge:

nanasess@fsm.ne.jp-20110116062137-wp3v8raq2lh8n40j
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
nanasess@fsm.ne.jp-20110116062219-tpkgcgbv2y4kxl6r
bzr:revno:
2656
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/class/helper/SC_Helper_Purchase.php nanasess@fsm.ne.jp-20110116062137-wp3v8raq2lh8n40j
data/class/pages/shopping/LC_Page_Shopping_Multiple.php nanasess@fsm.ne.jp-20110116062137-wp3v8raq2lh8n40j
bzr:timestamp:
2011-01-16 15:22:19.957999945 +0900
bzr:user-agent:
bzr2.2.2+bzr-svn1.0.4
svn:original-date:
2011-01-16T06:22:19.958000Z
Message:

#843(複数配送先の指定)

  • 複数配送設定のページで, カートの内容を再計算するよう修正
Location:
branches/version-2_5-dev/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_Purchase.php

    r19926 r19927  
    208208 
    209209    /** 
     210     * 配送商品の情報でカートを更新する. 
     211     */ 
     212    function shippingItemTempToCart(&$objCartSession) { 
     213        $shipmentItems = array(); 
     214 
     215        foreach (array_keys($_SESSION['shipping']) as $otherDelivId) { 
     216            foreach (array_keys($_SESSION['shipping'][$otherDelivId]['shipment_item']) as $productClassId) { 
     217                $shipmentItems[$productClassId] += $_SESSION['shipping'][$otherDelivId]['shipment_item'][$productClassId]['quantity']; 
     218           } 
     219        } 
     220        foreach ($shipmentItems as $productClassId => $quantity) { 
     221            $objCartSession->setProductValue($productClassId, 'quantity', 
     222                                             $quantity,$objCartSession->getKey()); 
     223        } 
     224    } 
     225 
     226    /** 
    210227     * 複数配送指定の購入かどうか. 
    211228     * 
  • branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Multiple.php

    r19926 r19927  
    129129                    } 
    130130 
     131                    $objPurchase->shippingItemTempToCart($objCartSess); 
    131132                    $objPurchase->saveOrderTemp($uniqid, $sqlval[0], $objCustomer); 
    132133                    $objSiteSess->setRegistFlag(); 
Note: See TracChangeset for help on using the changeset viewer.