Changeset 20971


Ignore:
Timestamp:
2011/06/10 19:37:11 (9 years ago)
Author:
Seasoft
Message:

#1333 (謎な処理 SC_Helper_Purchase#shippingItemTempToCart)

  • 一旦削除してみましたので、不具合が確認されましたら、報告をお願いいたします。
Location:
branches/version-2_11-dev/data/class
Files:
2 edited

Legend:

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

    r20970 r20971  
    325325        $incTax = SC_Helper_DB_Ex::sfCalcIncTax($arrItems[$product_class_id]['productsClass']['price02']); 
    326326        $arrItems[$product_class_id]['total_inctax'] = $incTax * $arrItems[$product_class_id]['quantity']; 
    327     } 
    328  
    329     /** 
    330      * 配送商品の情報でカートを更新する. 
    331      * 
    332      * @param SC_CartSession $objCartSession SC_CartSession インスタンス 
    333      */ 
    334     function shippingItemTempToCart(&$objCartSession) { 
    335         $arrShipmentItems = array(); 
    336         foreach (array_keys($_SESSION['shipping']) as $shipping_id) { 
    337             foreach (array_keys($_SESSION['shipping'][$shipping_id]['shipment_item']) as $product_class_id) { 
    338                 $arrShipmentItems[$product_class_id] += $_SESSION['shipping'][$shipping_id]['shipment_item'][$product_class_id]['quantity']; 
    339            } 
    340         } 
    341         foreach ($arrShipmentItems as $product_class_id => $quantity) { 
    342             $objCartSession->setProductValue($product_class_id, 'quantity', 
    343                                              $quantity,$objCartSession->getKey()); 
    344         } 
    345327    } 
    346328 
  • branches/version-2_11-dev/data/class/pages/shopping/LC_Page_Shopping_Multiple.php

    r20963 r20971  
    266266        } 
    267267 
    268         $objPurchase->shippingItemTempToCart($objCartSess); 
    269268        // $arrValues[0] には, 購入者の情報が格納されている 
    270269        $objPurchase->saveOrderTemp($uniqid, $arrValues[0], $objCustomer); 
Note: See TracChangeset for help on using the changeset viewer.