Ignore:
Timestamp:
2013/01/18 10:51:00 (11 years ago)
Author:
undertree
Message:

IssueID #1723 【再注文】前回注文時から商品価格が変更されていた際アラートが出ない

File:
1 edited

Legend:

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

    r22206 r22271  
    7474        $objDb          = new SC_Helper_DB_Ex(); 
    7575        $objPurchase = new SC_Helper_Purchase_Ex(); 
     76        $objProduct  = new SC_Product(); 
    7677 
    7778        if (!SC_Utils_Ex::sfIsInt($_GET['order_id'])) { 
     
    7980        } 
    8081 
    81         $order_id        = $_GET['order_id']; 
     82        $order_id               = $_GET['order_id']; 
     83        $this->is_price_change  = false; 
    8284 
    8385        //受注データの取得 
     
    9597        // 受注商品明細の取得 
    9698        $this->tpl_arrOrderDetail = $objPurchase->getOrderDetail($order_id); 
     99        foreach ($this->tpl_arrOrderDetail as $product_index => $arrOrderProductDetail) { 
     100            //必要なのは商品の販売金額のみなので、遅い場合は、別途SQL作成した方が良い 
     101            $arrTempProductDetail = $objProduct->getProductsClass($arrOrderProductDetail['product_class_id']);  
     102            if($this->tpl_arrOrderDetail[$product_index]['price'] != $arrTempProductDetail['price02']) { 
     103                $this->is_price_change = true; 
     104            } 
     105            $this->tpl_arrOrderDetail[$product_index]['product_price'] = ($arrTempProductDetail['price02'])?$arrTempProductDetail['price02']:0; 
     106        } 
     107         
    97108        $this->tpl_arrOrderDetail = $this->setMainListImage($this->tpl_arrOrderDetail); 
    98109        $objPurchase->setDownloadableFlgTo($this->tpl_arrOrderDetail); 
Note: See TracChangeset for help on using the changeset viewer.