バグ報告 > フロント機能 > 商品詳細ページの「かごに入れる」をもう一つ追加する |
フロント機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
aska824 |
投稿日時: 2010/2/20 1:07
対応状況: −−−
|
長老 登録日: 2010/2/20 居住地: 静岡県 投稿: 185 |
商品詳細ページの「かごに入れる」をもう一つ追加する 初めて投稿させていただきます。
商品詳細ページの「かごに入れる」がある部分 (商品ステータスや価格などがある部分)を上下二つ入れようと思っています。 デザイン管理→ページ詳細設定→商品詳細ページ の <div id="detailarea"> 部分からコピーして上下二つ入れることができたのですが、ここで困ってます。 二つ作ると「お気に入りに追加」と「かごに入れる」が全く機能しなくなってしまいます。 <form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->"> <input type="hidden" name="mode" value="cart" /> <input type="hidden" name="product_id" value=" 中略 <!--★カゴに入れる★--> <a href="java script:void(document.form1.submit())" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart');"> <img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart" id="cart" /> </a> </p> <!--{if 'sfGMODetailDisplay'|function_exists}--><!--{* GMOワンクリック *}--> <!--{'sfGMODetailDisplay'|call_user_func}--> <!--{/if}--> <!--{else}--> <div class="attention">申し訳ございませんが、只今品切れ中です。</div> <!--{/if}--> </form> の部分をいじればいいと思うんですが、全く分からず立ち往生してます。 どなたかわかる方よければご返答ください。 |
aska824 |
投稿日時: 2010/2/20 1:12
対応状況: −−−
|
長老 登録日: 2010/2/20 居住地: 静岡県 投稿: 185 |
Re: 商品詳細ページの「かごに入れる」をもう一つ追加する すみません。自己解決しました。
<form name="form1" id="form1" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->"> ↓ <form name="form2" id="form2" method="post" action="<!--{$smarty.server.REQUEST_URI|escape}-->"> と <a href="java script:void(document.form1.submit())" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart');"> ↓ <a href="java script:void(document.form2.submit())" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart');"> に「form1」を「form2」にしたらうまく動作しました。 |
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |