アクセスカウンタ
読者登録
メールアドレスを入力して登録する事で、このブログの新着エントリーをメールでお届けいたします。解除は→こちら
現在の読者数 1人
プロフィール
スポンジボブ

2010年06月30日

詳細ページに商品の詳細データを規格ごとに表示する

detail.tplに以下を挿入。

<!--{foreach from=$arrProductsClass item=list_item key=list_key}-->
<form name="form<!--{$list_key}-->" id="form<!--{$list_key}-->" 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="" />
<input type="hidden" name="classcategory_id1" value="<!--{$list_item.classcategory_id1}-->" />
<input type="hidden" name="classcategory_id2" value="<!--{$list_item.classcategory_id2}-->" />
INDEX: <!--{$list_key}-->
CLASS1 ID: <!--{$list_item.classcategory_id1}-->
CLASS1 NAME: <!--{$list_item.classcategory_id1_name}-->
CLASS2 ID: <!--{$list_item.classcategory_id2}-->
CLASS2 NAME: <!--{$list_item.classcategory_id2_name}-->
STD PRICE: <!--{$list_item.price01}-->円
SELL PRICE: <!--{$list_item.price02}-->円
<input type="text" name="quantity" class="box54" value="<!--{$arrForm.quantity.value|default:1}-->" maxlength="<!--{$smarty.const.INT_LEN}-->" style="<!--{$arrErr.quantity|sfGetErrorColor}-->" />
<a href="javascript:void(document.form<!--{$list_key}-->.submit());" onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin_on.gif','cart<!--{$list_key}-->');" onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_cartin.gif','cart<!--{$list_key}-->');">
<img src="<!--{$TPL_DIR}-->img/products/b_cartin.gif" width="115" height="25" alt="カゴに入れる" name="cart" id="cart<!--{$list_key}-->" /></a>
</form>
<!--{/foreach}-->

同じカテゴリー(EC-cube)の記事
 商品情報が入っている$arrProductの内容表示 (2010-10-21 13:41)
 タイトルの変更2 (2010-07-03 14:32)
 デバッグ (2010-07-02 13:33)
 TOPのタイトル変更 (2010-06-30 19:10)
 3桁ごとにカンマで区切る (2010-06-30 18:36)
 詳細ページに一覧ページのコメント表示 (2010-06-30 18:21)
Posted by スポンジボブ at 20:05│Comments(0)EC-cube
※このブログではブログの持ち主が承認した後、コメントが反映される設定です。
コメントフォーム
上の画像に書かれている文字を入力して下さい
<ご注意>
書き込まれた内容は公開され、ブログの持ち主だけが削除できます。