source: branches/version-2_13-dev/data/Smarty/templates/default/cart/index.tpl @ 23249

Revision 23249, 11.7 KB checked in by dkazuto, 10 years ago (diff)

#2434 (v2.13.0 ショップ画面:カートの数量「+」、「ー」について)

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