バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

機能要望 > フロント機能 > 規格で分けられた商品の価格表示

フロント機能

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
sasami
投稿日時: 2010/5/29 15:00
対応状況: −−−
新米
登録日: 2010/5/29
居住地:
投稿: 6
Re: 規格で分けられた商品の価格表示 パンくずナビが...
正に探していた物がここにあり、感動です。
さっそく入れてみましたが、綺麗に「規格名」「価格」を並べられました。

そこまでは良かったのですが、購入に進めなくなり、
また関連商品を登録している商品詳細がエラーにより開けなくなってしまいました。

どなたか解決方法がお分かりになるでしょうか・・

EC-CUBE Ver2.4.3です。

購入に進んだ際には、以下の表示が出ます。
「※申し訳ございませんが、ご購入の直前で売り切れた商品があります。該当商品をカートから削除いたしました。
※ 現在カート内に商品はございません。」

関連商品が設定されている場合には、
「システムエラーが発生しました。
大変お手数ですが、サイト管理者までご連絡ください。」
と表示されます。


LC_Page_Products_Detail.phpは、
mitukiさんの書かれていたものをそのまま使用しています。

/user_data/packages/default/detail.tpl は、
以下のようになっています。
引用:

<script type="text/javascript">//<![CDATA[
// セレクトボックスに項目を割り当てる。
function lnSetSelect(form, name1, name2, val) {

sele11 = document[form][name1];
sele12 = document[form][name2];

if(sele11 && sele12) {
index = sele11.selectedIndex;

// セレクトボックスのクリア
count = sele12.options.length;
for(i = count; i >= 0; i--) {
sele12.options[i] = null;
}

// セレクトボックスに値を割り当てる
len = lists[index].length;
for(i = 0; i < len; i++) {
sele12.options[i] = new Option(lists[index][i], vals[index][i]);
if(val != "" && vals[index][i] == val) {
sele12.options[i].selected = true;
}
}
}
}
//]]>
</script>

<!--▼CONTENTS-->
<div id="undercolumn">
<div id="detailtitle"><h2><!--★タイトル★--><!--{$tpl_subtitle|escape}--></h2></div>


<div id="detailarea">
<div id="detailphotoblock">

<!--{assign var=key value="main_image"}-->
<!--{if $arrProduct.main_large_image != ""}-->
<!--★画像★-->
<a href="java script:void(win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&image=main_large_image<!--{if $smarty.get.admin == 'on'}-->&admin=on<!--{/if}-->','detail_image','<!--{$arrFile.main_large_image.width+60}-->', '<!--{$arrFile.main_large_image.height+80}-->'))"><img src="<!--{$arrFile[$key].filepath}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" alt="<!--{$arrProduct.name|escape}-->" class="picture" /></a>
<p>
<!--★拡大する★-->
<a href="java script:void(win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&image=main_large_image<!--{if $smarty.get.admin == 'on'}-->&admin=on<!--{/if}-->','detail_image','<!--{$arrFile.main_large_image.width+60}-->', '<!--{$arrFile.main_large_image.height+80}-->'))" onMouseOver="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion_on.gif','expansion01');" onMouseOut="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion.gif','expansion01');">
<img src="<!--{$TPL_DIR}-->img/products/b_expansion.gif" width="85" height="13" alt="画像を拡大する" name="expansion01" id="expansion01" /></a>
</p>
<!--{else}-->
<img src="<!--{$arrFile[$key].filepath}-->" width="<!--{$arrFile[$key].width}-->" height="<!--{$arrFile[$key].height}-->" alt="<!--{$arrProduct.name|escape}-->" class="picture" />
<!--{/if}-->
</div>

<div id="detailrightblock">
<!--アイコン-->
<!--{if count($arrProduct.product_flag) > 0}-->
<ul class="status_icon">
<!--{section name=flg loop=$arrProduct.product_flag|count_characters}-->
<!--{if $arrProduct.product_flag[flg] == "1"}-->
<li>
<!--{assign var=key value="`$smarty.section.flg.iteration`"}-->
<img src="<!--{$TPL_DIR}--><!--{$arrSTATUS_IMAGE[$key]}-->" alt="<!--{$arrSTATUS[$key]}-->" id="icon<!--{$key}-->" />
</li>
<!--{/if}-->
<!--{/section}-->
</ul>
<!--{/if}-->

<!--★商品コード★-->
<!--{assign var=codecnt value=$arrProductCode|@count}-->
<!--{assign var=codemax value=`$codecnt-1`}-->

<h2><!--★商品名★--><!--{$arrProduct.name|escape}--></h2>
<div class="detail_come"><!--★詳細メインコメント★--><!--{$arrProduct.main_comment|nl2br}--></div>
<!--★価格★-->
<div>

<div id="price_area">
<!--{foreach from=$arrClassPrice key="key" item="datum" name="loop"}-->
<!--{foreach from=$datum key="key2" item="datum2" name="loop"}-->

<!--{$arrClassName[$key][$key2]}-->:単価 <span class="detail_price"><!--{$datum2|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->円</span> <span class="mini">(税込)</span><br />

<!--{/foreach}--><!--{/foreach}-->
</div>

<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>
<dt></dt>
<dd>枚数:
<input type="text" name="quantity" class="box54" 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}-->
</dd>
</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="<!--{$TPL_DIR}-->img/products/b_cartin.gif" alt="カゴに入れる" name="cart" id="cart" /></a>
</p>
<!--{if 'sfGMODetailDisplay'|function_exists}--><!--{* GMOワンクリック *}-->
<!--{'sfGMODetailDisplay'|call_user_func}-->
<!--{/if}-->
<!--{else}-->
<div class="attention">申し訳ございませんが、只今品切れ中です。</div>
<!--{/if}-->
</form>

</div>
</div>
<!--{* オペビルダー用 *}-->
<!--{if "sfViewDetailOpe"|function_exists === TRUE}-->
<!--{include file=`$smarty.const.MODULE_PATH`mdl_opebuilder/detail_ope_view.tpl}-->
<!--{/if}-->
<!--詳細ここまで-->


<!--▼サブコメントここから-->
<!--{section name=cnt loop=$smarty.const.PRODUCTSUB_MAX}-->
<!--{assign var=key value="sub_title`$smarty.section.cnt.index+1`"}-->
<!--{if $arrProduct[$key] != ""}-->
<div id="whoboughtarea">


<div class="subtitle">
<img src="<!--{$TPL_DIR}-->img/products/sub_title.jpg" alt="商品情報" />
</div>

<div class="subarea">
<div class="subarea_in">
<h3><!--★サブタイトル★--><!--{$arrProduct[$key]|escape}--></h3>
<!--{assign var=ckey value="sub_comment`$smarty.section.cnt.index+1`"}-->

<!--拡大写真がある場合ここから-->
<!--{assign var=key value="sub_image`$smarty.section.cnt.index+1`"}-->
<!--{assign var=lkey value="sub_large_image`$smarty.section.cnt.index+1`"}-->
<!--{if $arrFile[$key].filepath != ""}-->
<div class="subtext"><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br}--></div>
<div class="subphotoimg">
<!--{if $arrFile[$lkey].filepath != ""}-->
<a href="<!--{$smarty.server.PHP_SELF|escape}-->" onClick="win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&image=<!--{$lkey}--><!--{if $smarty.get.admin == 'on'}-->&admin=on<!--{/if}-->','detail_image','<!--{$arrFile[$lkey].width+60}-->','<!--{$arrFile[$lkey].height+80}-->'); return false;" target="_blank">
<!--{else}-->
<a>
<!--{/if}-->
<!--サブ画像-->
<img src="<!--{$arrFile[$key].filepath}-->" alt="<!--{$arrProduct.name|escape}-->" width="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" height="<!--{$smarty.const.NORMAL_SUBIMAGE_WIDTH}-->" /></a>
<!--{if $arrFile[$lkey].filepath != ""}-->
<p>
<a href="<!--{$smarty.server.PHP_SELF|escape}-->"
onclick="win01('./detail_image.php?product_id=<!--{$arrProduct.product_id}-->&image=<!--{$lkey}--><!--{if $smarty.get.admin == 'on'}-->&admin=on<!--{/if}-->','detail_image','<!--{$arrFile[$lkey].width+60}-->','<!--{$arrFile[$lkey].height+80}-->'); return false;"
onmouseover="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion_on.gif','expansion02');"
onmouseout="chgImg('<!--{$TPL_DIR}-->img/products/b_expansion.gif','expansion02');" target="_blank">
<img src="<!--{$TPL_DIR}-->img/products/b_expansion.gif" width="85" height="13" alt="画像を拡大する" />
</p></a>

<!--{/if}-->
</div>
<!--拡大写真がある場合ここまで-->
<!--{else}-->
<p><!--★サブテキスト★--><!--{$arrProduct[$ckey]|nl2br}--></p>
</div>
<!--{/if}-->
</div>
</div>
<!--{/if}-->
<!--{/section}-->
<!--▲サブコメントここまで-->


<!--▼オススメ商品ここから-->
<!--{if $arrRecommend}-->
<div id="whoboughtarea">
<h2><img src="<!--{$TPL_DIR}-->img/products/title_recommend.jpg" width="580" height="30" alt="オススメ商品" /></h2>
<div class="whoboughtblock">

<!--{section name=cnt loop=$arrRecommend}-->
<!--{if ($smarty.section.cnt.index % 2) == 0}-->
<!--{if $arrRecommend[cnt].product_id}-->
<!-- 左列 -->
<div class="whoboughtleft">
<!--{if $arrRecommend[cnt].main_list_image != ""}-->
<!--{assign var=image_path value="`$arrRecommend[cnt].main_list_image`"}-->
<!--{else}-->
<!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
<!--{/if}-->

<a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->">
<img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a>

<!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
<!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
<h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>

<p>価格<span class="mini">(税込)</span>:<span class="price">
<!--{if $price02_min == $price02_max}-->
<!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
<!--{else}-->
<!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
<!--{/if}-->円</span></p>
<p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p>
</div>
<!-- 左列 -->
<!--{/if}-->
<!--{/if}-->

<!--{if ($smarty.section.cnt.index % 2) != 0}-->
<!--{* assign var=nextCnt value=$smarty.section.cnt.index+1 *}-->
<!--{if $arrRecommend[cnt].product_id}-->
<!-- 右列 -->
<div class="whoboughtright">
<!--{if $arrRecommend[cnt].main_list_image != ""}-->
<!--{assign var=image_path value="`$arrRecommend[cnt].main_list_image`"}-->
<!--{else}-->

<!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
<!--{/if}-->
<a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->">
<img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrRecommend[cnt].name|escape}-->" /></a>
<!--{assign var=price02_min value=`$arrRecommend[cnt].price02_min`}-->
<!--{assign var=price02_max value=`$arrRecommend[cnt].price02_max`}-->
<h3><a href="<!--{$smarty.const.DETAIL_P_HTML}--><!--{$arrRecommend[cnt].product_id}-->"><!--{$arrRecommend[cnt].name|escape}--></a></h3>

<p>価格<span class="mini">(税込)</span>:<span class="price">

<!--{if $price02_min == $price02_max}-->
<!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
<!--{else}-->
<!--{$price02_min|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->〜<!--{$price02_max|sfPreTax:$arrSiteInfo.tax:$arrSiteInfo.tax_rule|number_format}-->
<!--{/if}-->円</span></p>
<p class="mini"><!--{$arrRecommend[cnt].comment|escape|nl2br}--></p>
</div>
<!-- 右列 -->
<!--{/if}-->
<!--{/if}-->

<!--{if $smarty.section.cnt.last}-->
</div>
<!--{/if}-->
<!--{/section}-->
</div>
<!--{/if}-->
</div>
<!--▲CONTENTS-->
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   規格で分けられた商品の価格表示 ゲスト 2007/3/3 10:38
     Re: 規格で分けられた商品の価格表示 habu 2007/3/6 9:42
       Re: 規格で分けられた商品の価格表示 ゲスト 2007/3/6 11:13
         Re: 規格で分けられた商品の価格表示 habu 2007/3/12 13:43
           Re: 規格で分けられた商品の価格表示 pineray 2007/3/16 18:10
             Re: 規格で分けられた商品の価格表示 ゲスト 2008/3/25 18:03
               Re: 規格で分けられた商品の価格表示 パンくずナビが... gunpowder 2009/6/26 0:50
                 Re: 規格で分けられた商品の価格表示 パンくずナビが... mituki 2009/7/27 19:03
                   Re: 規格で分けられた商品の価格表示 パンくずナビが... miyu1219 2010/3/4 16:24
                 » Re: 規格で分けられた商品の価格表示 パンくずナビが... sasami 2010/5/29 15:00
             Re: 規格で分けられた商品の価格表示 CAT 2008/3/31 18:02
               Re: 規格で分けられた商品の価格表示 kvex2004 2008/4/1 4:46
               Re: 規格で分けられた商品の価格表示 duckei 2008/4/1 10:58
               Re: 規格で分けられた商品の価格表示 CAT 2008/4/1 17:52
                 Re: 規格で分けられた商品の価格表示 duckei 2008/4/3 8:38
                 解決しました(^^; CAT 2008/4/3 17:39

 



ログイン


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

統計情報

総メンバー数は89,039名です
総投稿数は110,020件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1646
8
red
1570
9
mcontact
1296
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
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.