Ignore:
Timestamp:
2011/01/19 21:06:40 (13 years ago)
Author:
kotani
Message:

#792(ダウンロード販売機能)

  • MYページの購入履歴から「再注文」できない不具合改修
File:
1 edited

Legend:

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

    r19943 r19990  
    7575 
    7676        for($num = 0; $num < count($arrDisp); $num++) { 
    77             $product_id = $arrDisp[$num]['product_id']; 
    7877            $product_class_id = $arrDisp[$num]['product_class_id']; 
    79             $cate_id1 = $arrDisp[$num]['classcategory_id1']; 
    80             $cate_id2 = $arrDisp[$num]['classcategory_id2']; 
    8178            $quantity = $arrDisp[$num]['quantity']; 
     79            $product_type_id = $arrDisp[$num]['product_type_id']; 
    8280 
    83             $objCartSess->addProduct(array($product_id, $product_class_id, $cate_id1, $cate_id2), $quantity); 
     81            $objCartSess->addProduct($product_class_id, $quantity, $product_type_id); 
    8482        } 
    8583        SC_Response_Ex::sendRedirect(CART_URLPATH); 
     
    103101        $order_count = $objQuery->count("dtb_order", "order_id = ? and customer_id = ?", array($order_id, $customer_id)); 
    104102        if ($order_count != 1) return array(); 
    105         $col = "product_id, product_class_id, quantity"; 
     103        $col = "product_class_id, quantity, product_type_id"; 
     104        $table = "dtb_order_detail LEFT JOIN dtb_products_class USING(product_class_id)"; 
    106105        $where = "order_id = ?"; 
    107106        $objQuery->setOrder("product_class_id"); 
    108         $arrRet = $objQuery->select($col, "dtb_order_detail", $where, array($order_id)); 
     107        $arrRet = $objQuery->select($col, $table, $where, array($order_id)); 
    109108        return $arrRet; 
    110109    } 
Note: See TracChangeset for help on using the changeset viewer.