Ignore:
Timestamp:
2010/09/27 14:24:56 (11 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) 規格対応(規格と並行作業なので細かくコミットしてます)

File:
1 edited

Legend:

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

    r18701 r18827  
    6565        for($num = 0; $num < count($arrDisp); $num++) { 
    6666            $product_id = $arrDisp[$num]['product_id']; 
     67            $product_class_id = $arrDisp[$num]['product_class_id']; 
    6768            $cate_id1 = $arrDisp[$num]['classcategory_id1']; 
    6869            $cate_id2 = $arrDisp[$num]['classcategory_id2']; 
    6970            $quantity = $arrDisp[$num]['quantity']; 
    7071 
    71             $objCartSess->addProduct(array($product_id, $cate_id1, $cate_id2), $quantity); 
     72            $objCartSess->addProduct(array($product_id, $product_class_id, $cate_id1, $cate_id2), $quantity); 
    7273        } 
    7374        $this->sendRedirect($this->getLocation(URL_CART_TOP)); 
     
    102103        for($num = 0; $num < count($arrDisp); $num++) { 
    103104            $product_id = $arrDisp[$num]['product_id']; 
     105            $product_class_id = $arrDisp[$num]['product_class_id']; 
    104106            $cate_id1 = $arrDisp[$num]['classcategory_id1']; 
    105107            $cate_id2 = $arrDisp[$num]['classcategory_id2']; 
    106108            $quantity = $arrDisp[$num]['quantity']; 
    107109 
    108             $objCartSess->addProduct(array($product_id, $cate_id1, $cate_id2), $quantity); 
     110            $objCartSess->addProduct(array($product_id, $product_class_id, $cate_id1, $cate_id2), $quantity); 
    109111        } 
    110112        $this->sendRedirect($this->getLocation(MOBILE_URL_CART_TOP), true); 
     
    128130        $order_count = $objQuery->count("dtb_order", "order_id = ? and customer_id = ?", array($order_id, $customer_id)); 
    129131        if ($order_count != 1) return array(); 
    130         $col = "product_id, classcategory_id1, classcategory_id2, quantity"; 
     132        $col = "product_id, product_class_id, quantity"; 
    131133        $where = "order_id = ?"; 
    132         $objQuery->setOrder("classcategory_id1, classcategory_id2"); 
     134        $objQuery->setOrder("product_class_id"); 
    133135        $arrRet = $objQuery->select($col, "dtb_order_detail", $where, array($order_id)); 
    134136        return $arrRet; 
    135137    } 
    136      
     138 
    137139} 
    138140?> 
Note: See TracChangeset for help on using the changeset viewer.