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

Revision 22579, 12.4 KB checked in by shutta, 11 years ago (diff)

#2158 (現在のカゴの「画像がありません」の商品写真を押すと空白ページにジャンプする)
画像なしの場合は、アンカータグで囲わないように修正。

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