source: branches/version-2_12-dev/data/Smarty/templates/sphone/shopping/confirm.tpl @ 22458

Revision 22458, 15.8 KB checked in by Seasoft, 11 years ago (diff)

#2070 (ダウンロード商品購入 以前の注文手続きで入力したお届け先情報が保持される)

  • 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 * This file is part of EC-CUBE
3 *
4 * Copyright(c) 2000-2013 LOCKON CO.,LTD. All Rights Reserved.
5 *
6 * http://www.lockon.co.jp/
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 *}-->
22
23<script>//<![CDATA[
24    var send = true;
25
26    function fnCheckSubmit() {
27        if(send) {
28            send = false;
29            return true;
30        } else {
31            alert("只今、処理中です。しばらくお待ち下さい。");
32            return false;
33        }
34    }
35
36    //ご注文内容エリアの表示/非表示
37    var speed = 1000; //表示アニメのスピード(ミリ秒)
38    var stateCartconfirm = 0;
39    function fnCartconfirmToggle(areaEl, imgEl) {
40        areaEl.toggle(speed);
41        if (stateCartconfirm == 0) {
42            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_plus.png");
43            stateCartconfirm = 1;
44        } else {
45            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_minus.png");
46            stateCartconfirm = 0
47        }
48    }
49    //お届け先エリアの表示/非表示
50    var stateDelivconfirm = 0;
51    function fnDelivconfirmToggle(areaEl, imgEl) {
52        areaEl.toggle(speed);
53        if (stateDelivconfirm == 0) {
54            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_plus.png");
55            stateDelivconfirm = 1;
56        } else {
57            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_minus.png");
58            stateDelivconfirm = 0
59        }
60    }
61    //配送方法エリアの表示/非表示
62    var stateOtherconfirm = 0;
63    function fnOtherconfirmToggle(areaEl, imgEl) {
64        areaEl.toggle(speed);
65        if (stateOtherconfirm == 0) {
66            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_plus.png");
67            stateOtherconfirm = 1;
68        } else {
69            $(imgEl).attr("src", "<!--{$TPL_URLPATH}-->img/button/btn_minus.png");
70            stateOtherconfirm = 0
71        }
72    }
73//]]></script>
74
75<!--▼コンテンツここから -->
76<section id="undercolumn">
77
78    <h2 class="title"><!--{$tpl_title|h}--></h2>
79
80    <!--★インフォメーション★-->
81    <div class="information end">
82        <p>下記ご注文内容でよろしければ、「ご注文完了ページへ」ボタンをクリックしてください。</p>
83    </div>
84
85    <form name="form1" id="form1" method="post" action="<!--{$smarty.const.ROOT_URLPATH}-->shopping/confirm.php">
86        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
87        <input type="hidden" name="mode" value="confirm" />
88        <input type="hidden" name="uniqid" value="<!--{$tpl_uniqid}-->" />
89
90        <h3 class="subtitle">ご注文内容</h3>
91
92        <section class="cartconfirm_area">
93            <div class="form_area">
94                <!--▼フォームボックスここから -->
95                <div class="formBox">
96                    <!--▼カートの中の商品一覧 -->
97                    <div class="cartcartconfirmarea">
98                        <!--{foreach from=$arrCartItems item=item}-->
99                            <!--▼商品 -->
100                            <div class="cartconfirmBox">
101                                <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$item.productsClass.name|h}-->" width="80" height="80" class="photoL" />
102                                <div class="cartconfirmContents">
103                                    <div>
104                                        <p><em><!--{$item.productsClass.name|h}--></em><br />
105                                        <!--{if $item.productsClass.classcategory_name1 != ""}-->
106                                                <span class="mini"><!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--></span><br />
107                                        <!--{/if}-->
108                                        <!--{if $item.productsClass.classcategory_name2 != ""}-->
109                                                <span class="mini"><!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--></span>
110                                        <!--{/if}-->
111                                        </p>
112                                    </div>
113                                    <ul>
114                                        <li><span class="mini">数量:</span><!--{$item.quantity|number_format}--></li>
115                                        <li class="result"><span class="mini">小計:</span><!--{$item.total_inctax|number_format}-->円</li>
116                                    </ul>
117                                </div>
118                            </div>
119                            <!--▲商品 -->
120                        <!--{/foreach}-->
121                    </div>
122                    <!--▲カートの中の商品一覧 -->
123
124                    <!--★合計内訳★-->
125                    <div class="result_area">
126                        <ul>
127                            <li><span class="mini">小計 :</span><!--{$tpl_total_inctax[$cartKey]|number_format}--> 円</li>
128                            <!--{if $smarty.const.USE_POINT !== false}-->
129                                <li><span class="mini">値引き(ポイントご使用時): </span><!--{assign var=discount value=`$arrForm.use_point*$smarty.const.POINT_VALUE`}-->
130                                -<!--{$discount|number_format|default:0}--> 円</li>
131                            <!--{/if}-->
132                            <li><span class="mini">送料 :</span><!--{$arrForm.deliv_fee|number_format}--> 円</li>
133                            <li><span class="mini">手数料 :</span><!--{$arrForm.charge|number_format}--> 円</li>
134                        </ul>
135                    </div>
136
137                    <!--★合計★-->
138                    <div class="total_area">
139                        <span class="mini">合計:</span><span class="price fb"><!--{$arrForm.payment_total|number_format}--> 円</span>
140                    </div>
141                </div><!-- /.formBox -->
142
143                <!--{* ログイン済みの会員のみ *}-->
144                <!--{if $tpl_login == 1 && $smarty.const.USE_POINT !== false}-->
145                    <!--★ポイント情報★-->
146                    <div class="formBox point_confifrm">
147                        <dl>
148                            <dt>ご注文前のポイント</dt><dd><!--{$tpl_user_point|number_format|default:0}-->Pt</dd>
149                        </dl>
150                        <dl>
151                            <dt>ご使用ポイント</dt><dd>-<!--{$arrForm.use_point|number_format|default:0}-->Pt</dd>
152                        </dl>
153                        <!--{if $arrForm.birth_point > 0}-->
154                        <dl>
155                            <dt>お誕生月ポイント</dt><dd>+<!--{$arrForm.birth_point|number_format|default:0}-->Pt</dd>
156                        </dl>
157                        <!--{/if}-->
158                        <dl>
159                            <dt>今回加算予定のポイント</dt><dd>+<!--{$arrForm.add_point|number_format|default:0}-->Pt</dd>
160                        </dl>
161                        <dl>
162                            <!--{assign var=total_point value=`$tpl_user_point-$arrForm.use_point+$arrForm.add_point`}-->
163                            <dt>加算後のポイント</dt><dd><!--{$total_point|number_format}-->Pt</dd>
164                        </dl>
165                    </div><!-- /.formBox -->
166                <!--{/if}-->
167            </div><!-- /.form_area -->
168        </section>
169
170        <!--★お届け先の確認★-->
171        <!--{if $arrShipping}-->
172            <section class="delivconfirm_area">
173                <h3 class="subtitle">お届け先</h3>
174
175                <div class="form_area">
176
177                    <!--{foreach item=shippingItem from=$arrShipping name=shippingItem}-->
178                        <!--▼フォームボックスここから -->
179                        <div class="formBox">
180                            <dl class="deliv_confirm">
181                                <dt>お届け先<!--{if $is_multiple}--><!--{$smarty.foreach.shippingItem.iteration}--><!--{/if}--></dt>
182                                <dd>
183                                    <p>〒<!--{$shippingItem.shipping_zip01|h}-->-<!--{$shippingItem.shipping_zip02|h}--><br />
184                                        <!--{$arrPref[$shippingItem.shipping_pref]}--><!--{$shippingItem.shipping_addr01|h}--><!--{$shippingItem.shipping_addr02|h}--></p>
185                                    <p class="deliv_name"><!--{$shippingItem.shipping_name01|h}--> <!--{$shippingItem.shipping_name02|h}--></p>
186                                    <p><!--{$shippingItem.shipping_tel01}-->-<!--{$shippingItem.shipping_tel02}-->-<!--{$shippingItem.shipping_tel03}--></p>
187                                    <!--{if $shippingItem.shipping_fax01 > 0}-->
188                                        <p><!--{$shippingItem.shipping_fax01}-->-<!--{$shippingItem.shipping_fax02}-->-<!--{$shippingItem.shipping_fax03}--></p>
189                                    <!--{/if}-->
190                                </dd>
191                                <!--{if $cartKey != $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
192                                    <dd>
193                                        <ul class="date_confirm">
194                                            <li><em>お届け日:</em><!--{$shippingItem.shipping_date|default:"指定なし"|h}--></li>
195                                            <li><em>お届け時間:</em><!--{$shippingItem.shipping_time|default:"指定なし"|h}--></li>
196                                        </ul>
197                                    </dd>
198                                <!--{/if}-->
199                            </dl>
200
201                            <!--{if $is_multiple}-->
202                                <!--▼カートの中の商品一覧 -->
203                                <div class="cartcartconfirmarea">
204                                    <!--{foreach item=item from=$shippingItem.shipment_item}-->
205                                        <!--▼商品 -->
206                                        <div class="cartconfirmBox">
207                                            <!--{if $item.productsClass.main_image|strlen >= 1}-->
208                                                <a href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$item.productsClass.main_image|sfNoImageMainList|h}-->" target="_blank">
209                                                <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$item.productsClass.name|h}-->" width="80" height="80" class="photoL" /></a>
210                                            <!--{else}-->
211                                                <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=80&amp;height=80" alt="<!--{$item.productsClass.name|h}-->" width="80" height="80" class="photoL" />
212                                            <!--{/if}-->
213                                            <div class="cartconfirmContents">
214                                                <p>
215                                                    <em><!--{$item.productsClass.name|h}--></em><br />
216                                                    <!--{if $item.productsClass.classcategory_name1 != ""}-->
217                                                            <span class="mini"><!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--></span><br />
218                                                    <!--{/if}-->
219                                                    <!--{if $item.productsClass.classcategory_name2 != ""}-->
220                                                            <span class="mini"><!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--></span>
221                                                    <!--{/if}-->
222                                                </p>
223                                                <ul>
224                                                    <li><span class="mini">数量:</span><!--{$item.quantity}--></li>
225                                                    <!--{* XXX デフォルトでは購入小計と誤差が出るためコメントアウト*}-->
226                                                    <li class="result"><span class="mini">小計:</span><!--{$item.total_inctax|number_format}-->円</li>
227                                                </ul>
228                                            </div>
229                                        </div>
230                                        <!--▲商品 -->
231                                    <!--{/foreach}-->
232                                </div>
233                                <!--▲カートの中の商品一覧ここまで -->
234                            <!--{/if}-->
235                        </div><!-- /.formBox -->
236                    <!--{/foreach}-->
237                </div><!-- /.form_area -->
238            </section>
239        <!--{/if}-->
240
241        <!--★配送方法・お支払方法など★-->
242        <section class="otherconfirm_area">
243            <h3 class="subtitle">配送方法・お支払方法など</h3>
244
245            <div class="form_area">
246                <!--▼フォームボックスここから -->
247                <div class="formBox">
248                    <div class="innerBox">
249                        <em>配送方法</em>:<!--{$arrDeliv[$arrForm.deliv_id]|h}-->
250                    </div>
251                    <div class="innerBox">
252                        <em>お支払方法:</em><!--{$arrForm.payment_method|h}-->
253                    </div>
254                    <div class="innerBox">
255                        <em>その他お問い合わせ:</em><br />
256                        <!--{$arrForm.message|h|nl2br}-->
257                    </div>
258                </div><!-- /.formBox -->
259            </div><!-- /.form_area -->
260        </section>
261
262        <!--★ボタン★-->
263        <div class="btn_area">
264            <ul class="btn_btm">
265                <!--{if $use_module}-->
266                    <li><a rel="external" href="javascript:void(document.form1.submit());" class="btn">次へ</a></li>
267                <!--{else}-->
268                    <li><a rel="external" href="javascript:void(document.form1.submit());" class="btn">ご注文完了ページへ</a></li>
269                <!--{/if}-->
270                <li><a rel="external" href="./payment.php" class="btn_back">戻る</a></li>
271            </ul>
272        </div>
273
274    </form>
275</section>
276
277<!--▼検索バー -->
278<section id="search_area">
279    <form method="get" action="<!--{$smarty.const.ROOT_URLPATH}-->products/list.php">
280        <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
281        <input type="hidden" name="mode" value="search" />
282        <input type="search" name="name" id="search" value="" placeholder="キーワードを入力" class="searchbox" >
283    </form>
284</section>
285<!--▲検索バー -->
286<!--▲コンテンツここまで -->
Note: See TracBrowser for help on using the repository browser.