source: branches/version-2_12-dev/data/Smarty/templates/default/mypage/history.tpl @ 22271

Revision 22271, 14.1 KB checked in by undertree, 11 years ago (diff)

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

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-smarty-template; charset=UTF-8
Line 
1<!--{*
2/*
3 * This file is part of EC-CUBE
4 *
5 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
6 *
7 * http://www.lockon.co.jp/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22 */
23*}-->
24
25<div id="mypagecolumn">
26    <h2 class="title"><!--{$tpl_title|h}--></h2>
27    <!--{include file=$tpl_navi}-->
28    <div id="mycontents_area">
29        <h3><!--{$tpl_subtitle|h}--></h3>
30        <div class="mycondition_area clearfix">
31            <p>
32                <span class="st">購入日時:&nbsp;</span><!--{$tpl_arrOrderData.create_date|sfDispDBDate}--><br />
33                <span class="st">注文番号:&nbsp;</span><!--{$tpl_arrOrderData.order_id}--><br />
34                <span class="st">お支払い方法:&nbsp;</span><!--{$arrPayment[$tpl_arrOrderData.payment_id]|h}-->
35                <!--{if $is_price_change == true}-->   
36                    <div class="attention" Align="right">※金額が変更されている商品があるため、再注文時はご注意ください。</div>
37                <!--{/if}-->
38            </p>
39            <form action="order.php" method="post">
40                <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
41                <p class="btn">
42                    <input type="hidden" name="order_id" value="<!--{$tpl_arrOrderData.order_id|h}-->">
43                    <input type="image" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_order_re_on.jpg', this);" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_order_re.jpg', this);" src="<!--{$TPL_URLPATH}-->img/button/btn_order_re.jpg" alt="この購入内容で再注文する" name="submit" value="この購入内容で再注文する" />
44                </p>
45            </form>
46        </div>
47
48        <table summary="購入商品詳細">
49            <col width="15%" />
50            <col width="25%" />
51            <col width="20%" />
52            <col width="15%" />
53            <col width="10%" />
54            <col width="15%" />
55            <tr>
56                <th class="alignC">商品コード</th>
57                <th class="alignC">商品名</th>
58                <th class="alignC">商品種別</th>
59                <th class="alignC">単価</th>
60                <th class="alignC">数量</th>
61                <th class="alignC">小計</th>
62            </tr>
63            <!--{foreach from=$tpl_arrOrderDetail item=orderDetail}-->
64                <tr>
65                    <td><!--{$orderDetail.product_code|h}--></td>
66                    <td><a<!--{if $orderDetail.enable}--> href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$orderDetail.product_id|u}-->"<!--{/if}-->><!--{$orderDetail.product_name|h}--></a><br />
67                        <!--{if $orderDetail.classcategory_name1 != ""}-->
68                            <!--{$orderDetail.classcategory_name1|h}--><br />
69                        <!--{/if}-->
70                        <!--{if $orderDetail.classcategory_name2 != ""}-->
71                            <!--{$orderDetail.classcategory_name2|h}-->
72                        <!--{/if}-->
73                    </td>
74                    <td class="alignC">
75                    <!--{if $orderDetail.product_type_id == $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
76                        <!--{if $orderDetail.is_downloadable}-->
77                            <a target="_self" href="<!--{$smarty.const.ROOT_URLPATH}-->mypage/download.php?order_id=<!--{$tpl_arrOrderData.order_id}-->&product_id=<!--{$orderDetail.product_id}-->&product_class_id=<!--{$orderDetail.product_class_id}-->">ダウンロード</a>
78                        <!--{else}-->
79                            <!--{if $orderDetail.payment_date == "" && $orderDetail.effective == "0"}-->
80                                <!--{$arrProductType[$orderDetail.product_type_id]}--><BR />(入金確認中)
81                            <!--{else}-->
82                                <!--{$arrProductType[$orderDetail.product_type_id]}--><BR />(期限切れ)
83                            <!--{/if}-->
84                        <!--{/if}-->
85                    <!--{else}-->
86                        <!--{$arrProductType[$orderDetail.product_type_id]}-->
87                    <!--{/if}-->
88                    </td>
89                    <!--{assign var=order_price   value=`$orderDetail.price`}-->
90                    <!--{assign var=product_price value=`$orderDetail.product_price`}-->
91                    <!--{assign var=quantity value=`$orderDetail.quantity`}-->
92                    <!--{assign var=tax_rate value=`$orderDetail.tax_rate`}-->
93                    <!--{assign var=tax_rule value=`$orderDetail.tax_rule`}-->
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>
99                    <td class="alignR"><!--{$quantity|h}--></td>
100                    <td class="alignR"><!--{$order_price|sfCalcIncTax:$tax_rate:$tax_rule|sfMultiply:$quantity|number_format}-->円</td>
101                </tr>
102            <!--{/foreach}-->
103            <tr>
104                <th colspan="5" class="alignR">小計</th>
105                <td class="alignR"><!--{$tpl_arrOrderData.subtotal|number_format}-->円</td>
106            </tr>
107            <!--{assign var=point_discount value="`$tpl_arrOrderData.use_point*$smarty.const.POINT_VALUE`"}-->
108            <!--{if $point_discount > 0}-->
109            <tr>
110                <th colspan="5" class="alignR">ポイント値引き</th>
111                <td class="alignR">&minus;<!--{$point_discount|number_format}-->円</td>
112            </tr>
113            <!--{/if}-->
114            <!--{assign var=key value="discount"}-->
115            <!--{if $tpl_arrOrderData[$key] != "" && $tpl_arrOrderData[$key] > 0}-->
116            <tr>
117                <th colspan="5" class="alignR">値引き</th>
118                <td class="alignR">&minus;<!--{$tpl_arrOrderData[$key]|number_format}-->円</td>
119            </tr>
120            <!--{/if}-->
121            <tr>
122                <th colspan="5" class="alignR">送料</th>
123                <td class="alignR"><!--{assign var=key value="deliv_fee"}--><!--{$tpl_arrOrderData[$key]|number_format|h}-->円</td>
124            </tr>
125            <tr>
126                <th colspan="5" class="alignR">手数料</th>
127                <!--{assign var=key value="charge"}-->
128                <td class="alignR"><!--{$tpl_arrOrderData[$key]|number_format|h}-->円</td>
129            </tr>
130            <tr>
131                <th colspan="5" class="alignR">合計</th>
132                <td class="alignR"><span class="price"><!--{$tpl_arrOrderData.payment_total|number_format}-->円</span></td>
133            </tr>
134        </table>
135
136        <!-- 使用ポイントここから -->
137        <!--{if $smarty.const.USE_POINT !== false}-->
138            <table summary="使用ポイント">
139                <col width="30%" />
140                <col width="70%" />
141                <tr>
142                    <th class="alignL">ご使用ポイント</th>
143                    <td><!--{assign var=key value="use_point"}--><!--{$tpl_arrOrderData[$key]|number_format|default:0}--> pt</td>
144                </tr>
145                <tr>
146                    <th class="alignL">今回加算されるポイント</th>
147                    <td><!--{$tpl_arrOrderData.add_point|number_format|default:0}--> pt</td>
148                </tr>
149            </table>
150        <!--{/if}-->
151        <!-- 使用ポイントここまで -->
152
153        <!--{foreach item=shippingItem name=shippingItem from=$arrShipping}-->
154            <h3>お届け先<!--{if $isMultiple}--><!--{$smarty.foreach.shippingItem.iteration}--><!--{/if}--></h3>
155            <!--{if $isMultiple}-->
156                <table summary="お届け内容確認">
157                    <col width="30%" />
158                    <col width="40%" />
159                    <col width="20%" />
160                    <col width="10%" />
161                    <tr>
162                        <th class="alignC">商品コード</th>
163                        <th class="alignC">商品名</th>
164                        <th class="alignC">単価</th>
165                        <th class="alignC">数量</th>
166                        <!--{* XXX 購入小計と誤差が出るためコメントアウト
167                        <th>小計</th>
168                        *}-->
169                    </tr>
170                    <!--{foreach item=item from=$shippingItem.shipment_item}-->
171                        <tr>
172                            <td><!--{$item.productsClass.product_code|h}--></td>
173                            <td><!--{* 商品名 *}--><!--{$item.productsClass.name|h}--><br />
174                                <!--{if $item.productsClass.classcategory_name1 != ""}-->
175                                    <!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br />
176                                <!--{/if}-->
177                                <!--{if $item.productsClass.classcategory_name2 != ""}-->
178                                    <!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}-->
179                                <!--{/if}-->
180                            </td>
181                            <td class="alignR">
182                                <!--{$item.price|sfCalcIncTax:$tpl_arrOrderData.order_tax_rate:$tpl_arrOrderData.order_tax_rule|number_format}-->円
183                            </td>
184                            <td class="alignC"><!--{$item.quantity}--></td>
185                            <!--{* XXX 購入小計と誤差が出るためコメントアウト
186                            <td class="alignR"><!--{$item.total_inctax|number_format}-->円</td>
187                            *}-->
188                        </tr>
189                    <!--{/foreach}-->
190                </table>
191            <!--{/if}-->
192            <table summary="お届け先" class="delivname">
193                    <col width="30%" />
194                    <col width="70%" />
195                    <tr>
196                        <th class="alignL">お名前</th>
197                        <td><!--{$shippingItem.shipping_name01|h}-->&nbsp;<!--{$shippingItem.shipping_name02|h}--></td>
198                    </tr>
199                    <tr>
200                        <th class="alignL">お名前(フリガナ)</th>
201                        <td><!--{$shippingItem.shipping_kana01|h}-->&nbsp;<!--{$shippingItem.shipping_kana02|h}--></td>
202                    </tr>
203                    <tr>
204                        <th class="alignL">郵便番号</th>
205                        <td>〒<!--{$shippingItem.shipping_zip01}-->-<!--{$shippingItem.shipping_zip02}--></td>
206                    </tr>
207                    <tr>
208                        <th class="alignL">住所</th>
209                        <td><!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01|h}--><!--{$shippingItem.shipping_addr02|h}--></td>
210                    </tr>
211                    <tr>
212                        <th class="alignL">電話番号</th>
213                        <td><!--{$shippingItem.shipping_tel01}-->-<!--{$shippingItem.shipping_tel02}-->-<!--{$shippingItem.shipping_tel03}--></td>
214                    </tr>
215                    <tr>
216                        <th class="alignL">FAX番号</th>
217                        <td>
218                            <!--{if $shippingItem.shipping_fax01 > 0}-->
219                                <!--{$shippingItem.shipping_fax01}-->-<!--{$shippingItem.shipping_fax02}-->-<!--{$shippingItem.shipping_fax03}-->
220                            <!--{/if}-->
221                        </td>
222                    </tr>
223                    <tr>
224                        <th class="alignL">お届け日</th>
225                        <td><!--{$shippingItem.shipping_date|default:'指定なし'|h}--></td>
226                    </tr>
227                    <tr>
228                        <th class="alignL">お届け時間</th>
229                        <td><!--{$shippingItem.shipping_time|default:'指定なし'|h}--></td>
230                    </tr>
231                </tbody>
232            </table>
233        <!--{/foreach}-->
234
235        <br />
236
237        <h3>メール配信履歴一覧</h3>
238        <table>
239            <tr>
240                <th class="alignC">処理日</th>
241                <th class="alignC">通知メール</th>
242                <th class="alignC">件名</th>
243            </tr>
244            <!--{section name=cnt loop=$tpl_arrMailHistory}-->
245            <tr class="center">
246                <td class="alignC"><!--{$tpl_arrMailHistory[cnt].send_date|sfDispDBDate|h}--></td>
247                <!--{assign var=key value="`$tpl_arrMailHistory[cnt].template_id`"}-->
248                <td class="alignC"><!--{$arrMAILTEMPLATE[$key]|h}--></td>
249                <td><a href="#" onclick="win02('./mail_view.php?send_id=<!--{$tpl_arrMailHistory[cnt].send_id}-->','mail_view','650','800'); return false;"><!--{$tpl_arrMailHistory[cnt].subject|h}--></a></td>
250            </tr>
251            <!--{/section}-->
252        </table>
253
254        <div class="btn_area">
255            <ul>
256                <li>
257                    <a href="./<!--{$smarty.const.DIR_INDEX_PATH}-->" onmouseover="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_back_on.jpg','change');" onmouseout="chgImg('<!--{$TPL_URLPATH}-->img/button/btn_back.jpg','change');"><img src="<!--{$TPL_URLPATH}-->img/button/btn_back.jpg" alt="戻る" name="change" id="change" /></a>
258                </li>
259            </ul>
260        </div>
261
262    </div>
263</div>
Note: See TracBrowser for help on using the repository browser.