バージョン選択

フォーラム

メニュー

オンライン状況

51 人のユーザが現在オンラインです。 (37 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 51
もっと...

サイト内検索

質問 > フロント機能 > 現在のカゴの中ページで個数の増減と商品削除ができない

フロント機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
all
投稿日時: 2010/6/14 12:26
対応状況: −−−
常連
登録日: 2009/11/18
居住地:
投稿: 32
現在のカゴの中ページで個数の増減と商品削除ができない
オープン直前になり、現在のカゴの中ページ(/cart/index.php)で
個数を+-ボタンをクリックして増減させることと、
商品を削除させる為の削除ボタンが機能しないことが
発覚しました。
特にテンプレを触ることはしていないので何が悪いのか
解らない状況です。
下記に/cart/index.tplのソースを貼りますので、
お助けいただければと思います。
よろしくお願い致します。



<!--{*
* This file is part of EC-CUBE
*
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
*
* http://www.lockon.co.jp/
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*}-->
<!--▼CONTENTS-->
<div id="under02column">
<div id="under02column_cart">
<h2 class="title">
<img src="<!--{$TPL_DIR}-->img/cart/title.jpg" width="700" height="40" alt="現在のカゴの中" />
</h2>
<!--{if $smarty.const.USE_POINT === true || count($arrProductsClass) > 0}-->
<p class="totalmoneyarea">
<!--★ポイント案内★-->
<!--{if $smarty.const.USE_POINT === true}-->
<!--{if $tpl_login}-->
<!--{$tpl_name|escape}--> 様の、現在の所持ポイントは「<em><!--{$tpl_user_point|number_format|default:0}--> pt</em>」です。<br />
<!--{else}-->
ポイント制度をご利用になられる場合は、会員登録後ログインしていだだきますようお願い致します。<br />
<!--{/if}-->
<!--{/if}-->

<!--{* カゴの中に商品がある場合にのみ表示 *}-->
<!--{if count($arrProductsClass) > 0 }-->
お買い上げ商品の合計金額は「<em><!--{$tpl_total_pretax|number_format}-->円</em>」です。
<!--{if $arrInfo.free_rule > 0}-->
<!--{if $arrData.deliv_fee|number_format > 0}-->
あと「<em><!--{$tpl_deliv_free|number_format}-->円</em>」で送料無料です!!
<!--{else}-->
現在、「<em>送料無料</em>」です!!
<!--{/if}-->
<!--{/if}-->
<!--{/if}-->
</p>
<!--{/if}-->

<!--{if $tpl_message != ""}-->
<p class="attention"><!--{$tpl_message|escape}--></p>
<!--{/if}-->

<!--{if count($arrProductsClass) > 0}-->

<form name="form1" id="form1" method="post" action="<!--{$smarty.server.PHP_SELF|escape}-->">
<!--{if 'sfGMOCartDisplay'|function_exists}-->
<!--{'sfGMOCartDisplay'|call_user_func}-->
<!--{/if}-->

<input type="hidden" name="mode" value="confirm" />
<input type="hidden" name="cart_no" value="" />
<table summary="商品情報">
<tr>
<th>削除</th>
<th>商品写真</th>
<th>商品名</th>
<th>単価</th>
<th>個数</th>
<th>小計</th>
</tr>
<!--{section name=cnt loop=$arrProductsClass}-->
<tr>
<td><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnChangeAction('<!--{$smarty.server.PHP_SELF|escape}-->'); fnModeSubmit('delete', 'cart_no', '<!--{$arrProductsClass[cnt].cart_no}-->'); return false;">削除</a>
</td>
<td class="phototd">
<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="win01('../products/detail_image.php?product_id=<!--{$arrProductsClass[cnt].product_id}-->ℑ=main_image','detail_image','<!--{$arrProductsClass[cnt].tpl_image_width}-->','<!--{$arrProductsClass[cnt].tpl_image_height}-->'); return false;" target="_blank">
<img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$arrProductsClass[cnt].main_list_image}-->&width=65&height=65" alt="<!--{$arrProductsClass[cnt].name|escape}-->" /></a>
</td>
<td><!--{* 商品名 *}--><strong><!--{$arrProductsClass[cnt].name|escape}--></strong><br />
<!--{if $arrProductsClass[cnt].classcategory_name1 != ""}-->
<!--{$arrProductsClass[cnt].class_name1}-->:<!--{$arrProductsClass[cnt].classcategory_name1}--><br />
<!--{/if}-->
<!--{if $arrProductsClass[cnt].classcategory_name2 != ""}-->
<!--{$arrProductsClass[cnt].class_name2}-->:<!--{$arrProductsClass[cnt].classcategory_name2}-->
<!--{/if}-->
</td>
<td class="pricetd">
<!--{if $smarty.session.customer.customer_rank != 1}--><!--{* 一般会員なら上代価格を表示 *}-->
<!--{$arrProductsClass[cnt].price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円
<!--{else}--><!--{* プレミアム会員なら特別価格を表示(特別価格未設定なら上代価格を表示) *}-->
<!--{if $arrProductsClass[cnt].price01 != ""}-->
<!--{$arrProductsClass[cnt].price01|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円
<!--{else}-->
<!--{$arrProductsClass[cnt].price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円
<!--{/if}-->
<!--{/if}-->
</td>
<td id="quantity"><!--{$arrProductsClass[cnt].quantity}-->
<ul id="quantity_level">
<li><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnChangeAction('<!--{$smarty.server.PHP_SELF|escape}-->'); fnModeSubmit('up','cart_no','<!--{$arrProductsClass[cnt].cart_no}-->'); return false"><img src="<!--{$TPL_DIR}-->img/cart/plus.gif" width="16" height="16" alt="+" /></a></li>
<li><a href="<!--{$smarty.server.PHP_SELF|escape}-->" onclick="fnChangeAction('<!--{$smarty.server.PHP_SELF|escape}-->'); fnModeSubmit('down','cart_no','<!--{$arrProductsClass[cnt].cart_no}-->'); return false"><img src="<!--{$TPL_DIR}-->img/cart/minus.gif" width="16" height="16" alt="-" /></a></li>
</ul>
</td>
<td class="pricetd"><!--{$arrProductsClass[cnt].total_pretax|number_format}-->円</td>
</tr>
<!--{/section}-->
<tr>
<th colspan="5" class="resulttd">小計</th>
<td class="pricetd"><!--{$tpl_total_pretax|number_format}--></td>
</tr>
<tr>
<th colspan="5" class="resulttd">合計</th>
<td class="pricetd"><em><!--{$arrData.total-$arrData.deliv_fee|number_format}-->円</em></td>
</tr>
<!--{if $smarty.const.USE_POINT === true}-->
<!--{if $arrData.birth_point > 0}-->
<tr>
<th colspan="5" class="resulttd">お誕生月ポイント</th>
<td class="pricetd"><!--{$arrData.birth_point|number_format}-->pt</td>
</tr>
<!--{/if}-->
<tr>
<th colspan="5" class="resulttd">今回加算ポイント</th>
<td class="pricetd"><!--{$arrData.add_point|number_format}-->pt</td>
</tr>
<!--{/if}-->
</table>
<p class="mini">※商品写真は参考用写真です。ご注文のカラーと異なる写真が表示されている場合でも、商品番号に記載されているカラー表示で間違いございませんのでご安心ください。</p>
<div class="tblareabtn">
<p>
<img src="<!--{$TPL_DIR}-->img/cart/text.gif" width="390" height="30" alt="上記内容でよろしければ「レジへ行く」ボタンをクリックしてください。" />
</p>

<!--{if $tpl_prev_url != ""}-->
<p>
<a href="<!--{$tpl_prev_url}-->" onmouseover="chgImg('<!--{$TPL_DIR}-->img/cart/b_pageback_on.gif','back');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/cart/b_pageback.gif','back');">
<img src="<!--{$TPL_DIR}-->img/cart/b_pageback.gif" width="150" height="30" alt="買い物を続ける" name="back" id="back" /></a>&nbsp;&nbsp;
<!--{/if}-->
<input type="image" onmouseover="chgImgImageSubmit('<!--{$TPL_DIR}-->img/cart/b_buystep_on.gif',this)" onmouseout="chgImgImageSubmit('<!--{$TPL_DIR}-->img/cart/b_buystep.gif',this)" src="<!--{$TPL_DIR}-->img/cart/b_buystep.gif" class="box150" alt="購入手続きへ" name="confirm" />
</p>
</div>
</form>
<!--{else}-->
<p class="empty"><em>※ 現在カート内に商品はございません。</em></p>
<!--{/if}-->
</div>
</div>
<!--▲CONTENTS-->
AMUAMU
投稿日時: 2010/6/14 16:09
対応状況: −−−
登録日: 2009/5/2
居住地: 東京都
投稿: 2712
Re: 現在のカゴの中ページで個数の増減と商品削除ができない
引用:
商品を削除させる為の削除ボタンが機能しないことが発覚しました。


機能しないというのは具体的にどういう状態でしょうか?
javascriptエラーなど出ていませんか?

また、site_frame.tplでのjsファイルの指定を不用意に削っていたり、jsファイルを編集していたりしていませんか?


----------------
EC-CUBE公式エヴァンジェリスト
EC-CUBEインテグレートパートナー (株)スピリット・オブ
移転・拡張・高速化・問題解決
各種カスタマイズ・支援依頼承ります。

[url=h

all
投稿日時: 2010/6/14 16:55
対応状況: −−−
常連
登録日: 2009/11/18
居住地:
投稿: 32
Re: 現在のカゴの中ページで個数の増減と商品削除ができない
>AMUAMU 様

機能しないというのは、クリックするとステータスバーに
java script:void(0)と表示され動作をしません。

ご指摘の通りsite_frame.tplにsmoothscrollのjsを追加しており
まして、これを削除したら正常に戻りました。

ソース自体は編集をしていないものの、追加するだけで
不具合が起こってしまうのですね。

ありがとうございました。
AMUAMU
投稿日時: 2010/6/14 16:59
対応状況: −−−
登録日: 2009/5/2
居住地: 東京都
投稿: 2712
Re: 現在のカゴの中ページで個数の増減と商品削除ができない
変数や関数などの名前がぶつかる事が結構あるので、どこぞのjsを引っ張ってきて追加で入れるだけでも色々機能しなくなることあります。
javascriptのエラーコンソール見れば一発で分かるので覚えておくと良いと思いますよ


----------------
EC-CUBE公式エヴァンジェリスト
EC-CUBEインテグレートパートナー (株)スピリット・オブ
移転・拡張・高速化・問題解決
各種カスタマイズ・支援依頼承ります。

[url=h

all
投稿日時: 2010/6/14 18:30
対応状況: −−−
常連
登録日: 2009/11/18
居住地:
投稿: 32
Re: 現在のカゴの中ページで個数の増減と商品削除ができない
>AMUAMU 様

アドバイス誠にありがとうございました。
今後はその点も確認しながらやっていきます。
勉強させていただきました。
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は88,284名です
総投稿数は109,688件です

投稿数ランキング

1
seasoft
7365
2
468
3217
3
AMUAMU
2712
4
nanasess
2303
5
umebius
2085
6
yuh
1818
7
h_tanaka
1610
8
red
1567
9
mcontact
1240
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
796
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.