質問 > フロント機能 > 規格による会員限定価格 |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
Zombie |
投稿日時: 2011/2/25 11:48
対応状況: −−−
|
新米 ![]() ![]() 登録日: 2011/2/25 居住地: 投稿: 9 |
規格による会員限定価格 全商品、会員/非会員で値段を変えようとしています。
規格1に分類1/非会員価格、分類2/会員価格を設定し、 ログイン判定でif分岐 ifログイン{ 会員価格000円とテキスト表示し カートに「規格1の分類2(会員価格)」であるという値を渡す ※表示上は「会員価格000円」のみ } else{ 通常価格000円とテキスト表示し カートに「規格1の分類1(通常価格)」であるという値を渡す ※表示上は「通常価格000円」のみ } ということがやりたいのですが、 上記、 カートに「規格1の分類2(会員価格)」であるという値を渡す カートに「規格1の分類1(通常価格)」であるという値を渡す の部分のソースはどのように書けばいいでしょうか? ※ 通常リストメニューで選択させるところをログイン判定による分岐で固定値にしたいのです。 規格2は現在も今後もまったく使いません。 <option value="">選択してください</option> <!--{html_options options=$arrClassCat1 selected=$arrForm.classcategory_id1.value}--> </select> ↑ここの部分を変えればいいと思うのですが、どう変えればいいかわかりません。 よろしくお願いします。 [EC-CUBE]2.4 [レンタルサーバ]GMO SD共有サーバ [データベース] MySQL 現状の得にいじっていない状態のソースです。 <div id="item08"> <ul> <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="<!--{$tpl_product_id}-->" /> <input type="hidden" name="favorite_product_id" value="" /> <!--{if $tpl_classcat_find1}--> <dl> <dt> <!--{$tpl_class_name1}--> </dt> <dd> <select name="classcategory_id1" style="<!--{$arrErr.classcategory_id1|sfGetErrorColor}-->" onchange="lnSetSelect('form1', 'classcategory_id1', 'classcategory_id2', ''); "> <option value="">選択してください</option> <!--{html_options options=$arrClassCat1 selected=$arrForm.classcategory_id1.value}--> </select> <!--{if $arrErr.classcategory_id1 != ""}--> <br /><span class="attention">※ <!--{$tpl_class_name1}-->を入力して下さい。</span> <!--{/if}--> </dd> </dl> <!--{/if}--> <!--{if $tpl_stock_find}--> <!--{if $tpl_classcat_find2}--> <dl> <dt><!--{$tpl_class_name2}--></dt> <dd> <select name="classcategory_id2" style="<!--{$arrErr.classcategory_id2|sfGetErrorColor}-->"> <option value="">選択してください</option> </select> <!--{if $arrErr.classcategory_id2 != ""}--> <br /><span class="attention">※ <!--{$tpl_class_name2}-->を入力して下さい。</span> <!--{/if}--> </dd> </dl> <!--{/if}--> <dl> <li>数量: <input type="text" name="quantity" size="3" value="<!--{$arrForm.quantity.value|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" /> <!--{if $arrErr.quantity != ""}--> <br /><span class="attention"><!--{$arrErr.quantity}--></span> <!--{/if}--> <li> </dl> <!--{/if}--> <!--{if $tpl_stock_find}--> <p class="btn"> <!--{* お気に入りに追加するボタンを表示させる *}--> <!--{include file="./products/customer_favorite_products.tpl"}--> <!--{* カゴに入れるボタン *}--> <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="./img/bt_cart.jpg" width="106" height="19" alt="カートに入れる" name="cart" id="cart" /></a> </p> <!--{if 'sfGMODetailDisplay'|function_exists}--><!--{* GMOワンクリック *}--> <!--{'sfGMODetailDisplay'|call_user_func}--> <!--{/if}--> <!--{else}--> <div class="attention">申し訳ございませんが、只今品切れ中です。</div> <!--{/if}--> </form> <li id="item09">購入詳細をご確認後、<br /> カートに入れるボタンを押して下さい。 </li> </ul> </div> |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» ![]() |
Zombie | 2011/2/25 11:48 |
![]() |
AMUAMU | 2011/2/26 4:57 |
![]() |
maggi | 2011/3/21 11:31 |
![](images/pixel.gif)