質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
HTML5

HTML5 (Hyper Text Markup Language、バージョン 5)は、マークアップ言語であるHTMLの第5版です。

Smarty

Smartyは、PHPアプリケーションで使用されるテンプレートエンジンです。

EC-CUBE

EC-CUBEは、主に日本国内で開発されているECコンテンツ管理システムです。ロックオン社のECKitを元にしてオープンソース化され、商品管理・受注管理・顧客管理・売上集計などECに特化した様々な機能を備えています。

Q&A

1回答

3144閲覧

EC-CUBE カートに入れるボタンが動かない

退会済みユーザー

退会済みユーザー

総合スコア0

HTML5

HTML5 (Hyper Text Markup Language、バージョン 5)は、マークアップ言語であるHTMLの第5版です。

Smarty

Smartyは、PHPアプリケーションで使用されるテンプレートエンジンです。

EC-CUBE

EC-CUBEは、主に日本国内で開発されているECコンテンツ管理システムです。ロックオン社のECKitを元にしてオープンソース化され、商品管理・受注管理・顧客管理・売上集計などECに特化した様々な機能を備えています。

0グッド

0クリップ

投稿2015/10/28 09:47

EC-CUBE 商品一覧ページにてカートに入れるボタンが動作しません。
どこに問題があるのか、調べましたが該当するものが見つからず、さっぱり分かりませんでした。

どなたかご教授をお願い致します。

EC-CUBEバージョン 2.13.3
PHPバージョン PHP 5.3.3
DBバージョン MySQL 5.1.73

↓list.php

Smarty

1<!--▼商品--> 2 <form name="product_form<!--{$id|h}-->" action=""> 3 <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" /> 4 <input type="hidden" name="product_id" value="<!--{$id|h}-->" /> 5 <input type="hidden" name="product_class_id" id="product_class_id<!--{$id|h}-->" value="<!--{$tpl_product_class_id[$id]}-->" /> 6 <div class="list_area clearfix"> 7 <a name="product<!--{$id|h}-->"></a> 8 <div class="listphoto"> 9 <!--★画像★--> 10 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"> 11 <img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrProduct.main_list_image|sfNoImageMainList|h}-->" alt="&lt;!--{$arrProduct.name|h}--&gt;" class="picture" /></a> 12 </div> 13 14 <div class="listrightbloc"> 15 <!--▼商品ステータス--> 16 <!--{if count($productStatus[$id]) > 0}--> 17 <ul class="status_icon clearfix"> 18 <!--{foreach from=$productStatus[$id] item=status}--> 19 <li> 20 <img src="<!--{$TPL_URLPATH}--><!--{$arrSTATUS_IMAGE[$status]}-->" width="60" height="17" alt="&lt;!--{$arrSTATUS[$status]}--&gt;"/> 21 </li> 22 <!--{/foreach}--> 23 </ul> 24 <!--{/if}--> 25 <!--▲商品ステータス--> 26 27 <!--★商品名★--> 28 <h3> 29 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"><!--{$arrProduct.name|h}--></a> 30 </h3> 31 <!--★価格★--> 32 <div class="pricebox sale_price"> 33 <!--{$smarty.const.SALE_PRICE_TITLE}-->(税込): 34 <span class="price"> 35 <span id="price02_default_<!--{$id}-->"><!--{strip}--> 36 <!--{if $arrProduct.price02_min_inctax == $arrProduct.price02_max_inctax}--> 37 <!--{$arrProduct.price02_min_inctax|n2s}--> 38 <!--{else}--> 39 <!--{$arrProduct.price02_min_inctax|n2s}--><!--{$arrProduct.price02_max_inctax|n2s}--> 40 <!--{/if}--> 41 </span><span id="price02_dynamic_<!--{$id}-->"></span><!--{/strip}--> 42</span> 43 </div> 44 45 <!--★コメント★--> 46 <div class="listcomment"><!--{$arrProduct.main_list_comment|h|nl2br}--></div> 47 48 <!--★商品詳細を見る★--> 49 <div class="detail_btn"> 50 <!--{assign var=name value="detail`$id`"}--> 51 <a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrProduct.product_id|u}-->"> 52 <img class="hover_change_image" src="<!--{$TPL_URLPATH}-->img/button/btn_detail.jpg" alt="商品詳細を見る" name="<!--{$name}-->" id="<!--{$name}-->" /> 53 </a> 54 </div> 55 56 <!--▼買い物カゴ--> 57 <div class="cart_area clearfix"> 58 <!--{if $tpl_stock_find[$id]}--> 59 <!--{if $tpl_classcat_find1[$id]}--> 60 <div class="classlist"> 61 <dl class="size01 clearfix"> 62 <!--▼規格1--> 63 <dt><!--{$tpl_class_name1[$id]|h}--></dt> 64 <dd> 65 <select name="classcategory_id1" style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->"> 66 <!--{html_options options=$arrClassCat1[$id] selected=$arrProduct.classcategory_id1}--> 67 </select> 68 <!--{if $arrErr.classcategory_id1 != ""}--> 69 <p class="attention"><!--{$tpl_class_name1[$id]}-->を入力して下さい。</p> 70 <!--{/if}--> 71 </dd> 72 <!--▲規格1--> 73 </dl> 74 <!--{if $tpl_classcat_find2[$id]}--> 75 <dl class="size02 clearfix"> 76 <!--▼規格2--> 77 <dt><!--{$tpl_class_name2[$id]|h}--></dt> 78 <dd> 79 <select name="classcategory_id2" style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->"> 80 </select> 81 <!--{if $arrErr.classcategory_id2 != ""}--> 82 <p class="attention"><!--{$tpl_class_name2[$id]}-->を入力して下さい。</p> 83 <!--{/if}--> 84 </dd> 85 <!--▲規格2--> 86 </dl> 87 <!--{/if}--> 88 </div> 89 <!--{/if}--> 90 <div class="cartin clearfix"> 91 <div class="quantity"> 92 数量:<input type="text" name="quantity" class="box" value="<!--{$arrProduct.quantity|default:1|h}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" /> 93 <!--{if $arrErr.quantity != ""}--> 94 <br /><span class="attention"><!--{$arrErr.quantity}--></span> 95 <!--{/if}--> 96 </div> 97 <div class="cartin_btn"> 98 <!--★カゴに入れる★--> 99 <div id="cartbtn_default_<!--{$id}-->"> 100 <input type="image" id="cart<!--{$id}-->" src="<!--{$TPL_URLPATH}-->img/button/btn_cartin.jpg" alt="カゴに入れる" onclick="fnInCart(this.form); return false;" class="hover_change_image" /> 101 </div> 102 <div class="attention" id="cartbtn_dynamic_<!--{$id}-->"></div> 103 </div> 104 </div> 105 <!--{else}--> 106 <div class="cartbtn attention">申し訳ございませんが、只今品切れ中です。</div> 107 <!--{/if}--> 108 </div> 109 <!--▲買い物カゴ--> 110 </div> 111 </div> 112 </form> 113 <!--▲商品-->

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

javascript

1onclick="fnInCart(this.form); return false;"

でカートに入れてるので、動かないとしたらjsのエラーじゃないですか?

投稿2015/12/28 22:04

TaoSasaki

総合スコア86

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問