Changeset 22271 for branches/version-2_12-dev/data
- Timestamp:
- 2013/01/18 10:51:00 (11 years ago)
- Location:
- branches/version-2_12-dev/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/Smarty/templates/default/mypage/history.tpl
r22218 r22271 33 33 <span class="st">注文番号: </span><!--{$tpl_arrOrderData.order_id}--><br /> 34 34 <span class="st">お支払い方法: </span><!--{$arrPayment[$tpl_arrOrderData.payment_id]|h}--> 35 <!--{if $is_price_change == true}--> 36 <div class="attention" Align="right">※金額が変更されている商品があるため、再注文時はご注意ください。</div> 37 <!--{/if}--> 35 38 </p> 36 39 <form action="order.php" method="post"> … … 84 87 <!--{/if}--> 85 88 </td> 86 <!--{assign var=price value=`$orderDetail.price`}--> 89 <!--{assign var=order_price value=`$orderDetail.price`}--> 90 <!--{assign var=product_price value=`$orderDetail.product_price`}--> 87 91 <!--{assign var=quantity value=`$orderDetail.quantity`}--> 88 92 <!--{assign var=tax_rate value=`$orderDetail.tax_rate`}--> 89 93 <!--{assign var=tax_rule value=`$orderDetail.tax_rule`}--> 90 <td class="alignR"><!--{$price|sfCalcIncTax:$tax_rate:$tax_rule|number_format|h}-->円</td> 94 <td class="alignR"><!--{$order_price|sfCalcIncTax:$tax_rate:$tax_rule|number_format|h}-->円 95 <!--{if $order_price != $product_price}--> 96 <div class="attention">【現在価格】</div><span class="attention"><!--{$product_price|sfCalcIncTax:$tax_rate:$tax_rule|number_format|h}-->円</span> 97 <!--{/if}--> 98 </td> 91 99 <td class="alignR"><!--{$quantity|h}--></td> 92 <td class="alignR"><!--{$ price|sfCalcIncTax:$tax_rate:$tax_rule|sfMultiply:$quantity|number_format}-->円</td>100 <td class="alignR"><!--{$order_price|sfCalcIncTax:$tax_rate:$tax_rule|sfMultiply:$quantity|number_format}-->円</td> 93 101 </tr> 94 102 <!--{/foreach}--> -
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_History.php
r22206 r22271 74 74 $objDb = new SC_Helper_DB_Ex(); 75 75 $objPurchase = new SC_Helper_Purchase_Ex(); 76 $objProduct = new SC_Product(); 76 77 77 78 if (!SC_Utils_Ex::sfIsInt($_GET['order_id'])) { … … 79 80 } 80 81 81 $order_id = $_GET['order_id']; 82 $order_id = $_GET['order_id']; 83 $this->is_price_change = false; 82 84 83 85 //受注データの取得 … … 95 97 // 受注商品明細の取得 96 98 $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 97 108 $this->tpl_arrOrderDetail = $this->setMainListImage($this->tpl_arrOrderDetail); 98 109 $objPurchase->setDownloadableFlgTo($this->tpl_arrOrderDetail);
Note: See TracChangeset
for help on using the changeset viewer.