source: branches/version-2_11-dev/data/Smarty/templates/sphone/cart/index.tpl @ 20858

Revision 20858, 10.2 KB checked in by shutta, 13 years ago (diff)

refs #1268 (スマートフォン>「現在のカゴの中」で「今回加算ポイント」が表示できていない)
ハッシュ配列のキーの指定漏れを修正

  • 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-2011 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<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
23<script type="text/javascript" src="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.fancybox-1.3.4.pack.js"></script>
24<link rel="stylesheet" href="<!--{$smarty.const.ROOT_URLPATH}-->js/jquery.fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
25<script type="text/javascript">//<![CDATA[
26$(document).ready(function() {
27    $('a.expansion').fancybox();
28});
29//]]></script>
30
31<!--▼CONTENTS-->
32<div id="under02column">
33    <div id="under02column_cart">
34        <h2 class="title"><!--{$tpl_title|h}--></h2>
35        <!--{if $smarty.const.USE_POINT !== false || count($arrProductsClass) > 0}-->
36            <p class="totalmoneyarea">
37                <!--★ポイント案内★-->
38                <!--{if $smarty.const.USE_POINT !== false}-->
39                    <!--{if $tpl_login}-->
40                        <!--{$tpl_name|h}--> 様の、現在の所持ポイントは「<em><!--{$tpl_user_point|number_format|default:0}--> pt</em>」です。<br />
41                    <!--{else}-->
42                        ポイント制度をご利用になられる場合は、会員登録後ログインしてくださいますようお願い致します。<br />
43                    <!--{/if}-->
44                    ポイントは商品購入時に1pt=<!--{$smarty.const.POINT_VALUE}-->円として使用することができます。<br />
45                <!--{/if}-->
46
47                <!--{* カゴの中に商品がある場合にのみ表示 *}-->
48                <!--{if count($cartKeys) > 1}-->
49                    <em><!--{foreach from=$cartKeys item=key name=cartKey}--><!--{$arrProductType[$key]}--><!--{if !$smarty.foreach.cartKey.last}-->、<!--{/if}--><!--{/foreach}-->は同時購入できません。お手数ですが、個別に購入手続きをお願い致します。</em>
50                <!--{/if}-->
51
52            </p>
53        <!--{/if}-->
54
55    <!--{if strlen($tpl_error) != 0}-->
56        <p class="attention"><!--{$tpl_error|h}--></p>
57    <!--{/if}-->
58
59    <!--{if strlen($tpl_message) != 0}-->
60        <p class="attention"><!--{$tpl_message|h|nl2br}--></p>
61    <!--{/if}-->
62
63    <!--{if count($cartItems) > 0}-->
64
65    <!--{foreach from=$cartKeys item=key}-->
66        <form name="form1" id="form1" method="post" action="?">
67            <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
68            <!--{if 'sfGMOCartDisplay'|function_exists}-->
69                <!--{'sfGMOCartDisplay'|call_user_func}-->
70            <!--{/if}-->
71
72            <input type="hidden" name="mode" value="confirm" />
73            <input type="hidden" name="cart_no" value="" />
74            <input type="hidden" name="cartKey" value="<!--{$key}-->" />
75            <!--{if count($cartKeys) > 1}-->
76            <h3><!--{$arrProductType[$key]}--></h3>
77                <p>
78                    <!--{$arrProductType[$key]}-->の合計金額は「<em><!--{$tpl_total_inctax[$key]|number_format}-->円</em>」です。
79                    <!--{if $key != $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
80                        <!--{if $arrInfo.free_rule > 0}-->
81                            <!--{if !$arrData[$key].is_deliv_free}-->
82                                あと「<em><!--{$tpl_deliv_free[$key]|number_format}-->円</em>」で送料無料です!!
83                            <!--{else}-->
84                                現在、「<em>送料無料</em>」です!!
85                            <!--{/if}-->
86                        <!--{/if}-->
87                    <!--{/if}-->
88                </p>
89            <!--{else}-->
90                <p>
91                    お買い上げ商品の合計金額は「<em><!--{$tpl_total_inctax[$key]|number_format}-->円</em>」です。
92                    <!--{if $key != $smarty.const.PRODUCT_TYPE_DOWNLOAD}-->
93                        <!--{if $arrInfo.free_rule > 0}-->
94                            <!--{if !$arrData[$key].is_deliv_free}-->
95                                あと「<em><!--{$tpl_deliv_free[$key]|number_format}-->円</em>」で送料無料です!!
96                            <!--{else}-->
97                                現在、「<em>送料無料</em>」です!!
98                            <!--{/if}-->
99                       <!--{/if}-->
100                   <!--{/if}-->
101                </p>
102            <!--{/if}-->
103            <table summary="商品情報">
104                <tr>
105                    <th>商品写真</th>
106                    <th>商品名</th>
107                    <th>数量</th>
108                    <th>小計</th>
109                </tr>
110                <!--{foreach from=$cartItems[$key] item=item}-->
111                    <tr style="<!--{if $item.error}-->background-color: <!--{$smarty.const.ERR_COLOR}-->;<!--{/if}-->">
112                        <td class="phototd">
113                        <a
114                            <!--{if $item.productsClass.main_image|strlen >= 1}-->
115                                href="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$item.productsClass.main_image|sfNoImageMainList|h}-->"
116                                class="expansion"
117                                target="_blank"
118                            <!--{/if}-->
119                        >
120                            <img src="<!--{$smarty.const.ROOT_URLPATH}-->resize_image.php?image=<!--{$item.productsClass.main_list_image|sfNoImageMainList|h}-->&amp;width=40&amp;height=40" alt="<!--{$item.productsClass.name|h}-->" /></a><br />
121<a href="?" onclick="fnModeSubmit('delete', 'cart_no', '<!--{$item.cart_no}-->'); return false;">削除</a>
122                        </td>
123                        <td class="detailtdName"><!--{* 商品名 *}--><strong><!--{$item.productsClass.name|h}--></strong><br />
124                            <!--{if $item.productsClass.classcategory_name1 != ""}-->
125                                <!--{$item.productsClass.class_name1}-->:<!--{$item.productsClass.classcategory_name1}--><br />
126                            <!--{/if}-->
127                            <!--{if $item.productsClass.classcategory_name2 != ""}-->
128                                <!--{$item.productsClass.class_name2}-->:<!--{$item.productsClass.classcategory_name2}--><br />
129                            <!--{/if}-->
130価格:<!--{$item.productsClass.price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円
131
132
133                        </td>
134                        <td class="detailtdPM"><!--{$item.quantity}-->
135                        <br />
136<ul id="quantity_level">
137                                <li><a href="?" onclick="fnModeSubmit('up','cart_no','<!--{$item.cart_no}-->'); return false"><img src="<!--{$TPL_URLPATH}-->img/button/btn_plus.gif" width="16" height="16" alt="+" /></a></li>
138                                <li><a href="?" onclick="fnModeSubmit('down','cart_no','<!--{$item.cart_no}-->'); return false"><img src="<!--{$TPL_URLPATH}-->img/button/btn_minus.gif" width="16" height="16" alt="-" /></a></li>
139                            </ul></td>
140                        <td class="detailtdYenT"><!--{$item.total_inctax|number_format}-->円</td>
141              </tr>
142                 <!--{/foreach}-->
143                 <tr>
144                     <th colspan="3" class="resulttd">小計</th>
145                     <td colspan="2" class="alignR"><!--{$tpl_total_inctax[$key]|number_format}-->円</td>
146                 </tr>
147                 <tr>
148                     <th colspan="3" class="resulttd">合計</th>
149                     <td colspan="2" class="alignR"><em><!--{$arrData[$key].total-$arrData[$key].deliv_fee|number_format}-->円</em></td>
150                 </tr>
151                 <!--{if $smarty.const.USE_POINT !== false}-->
152                     <!--{if $arrData[$key].birth_point > 0}-->
153                         <tr>
154                             <th colspan="3" class="resulttd">お誕生月ポイント</th>
155                             <td colspan="2" class="alignR"><!--{$arrData[$key].birth_point|number_format}-->pt</td>
156                         </tr>
157                     <!--{/if}-->
158                     <tr>
159                         <th colspan="3" class="resulttd">今回加算ポイント</th>
160                         <td colspan="2" class="alignR"><!--{$arrData[$key].add_point|number_format}-->pt</td>
161                    </tr>
162                <!--{/if}-->
163            </table>
164            <div class="tblareabtn">
165                <!--{if strlen($tpl_error) == 0}-->
166              <p>上記内容でよろしければ「購入手続きへ」ボタンをクリックしてください。</p>
167                <!--{/if}-->
168
169               
170                    <!--{if strlen($tpl_error) == 0}-->
171                        <p>
172                        <input type="hidden" name="cartKey" value="<!--{$key}-->" />
173                        <input type="submit" value="購入手続きへ" class="spbtn spbtn-shopping" width="130" height="30" alt="購入手続きへ" name="confirm" />
174                        </p>
175                    <!--{/if}-->
176                    <!--{if $tpl_prev_url != ""}-->
177                        <p><a href="<!--{$tpl_prev_url|h}-->" class="spbtn spbtn-medeum">買い物を続ける</a></p>
178                    <!--{/if}-->
179             
180          </div>
181        </form>
182    <!--{/foreach}-->
183    <!--{else}-->
184        <p class="empty"><em>※ 現在カート内に商品はございません。</em></p>
185    <!--{/if}-->
186    </div>
187</div>
188<!--▲CONTENTS-->
Note: See TracBrowser for help on using the repository browser.