バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

質問 > フロント機能 > 2.11 カテゴリ横並びについて

フロント機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
greanpice
投稿日時: 2013/10/7 19:45
対応状況: 確認中
長老
登録日: 2011/7/12
居住地:
投稿: 180
2.11 カテゴリ横並びについて
eccube2.11.5
でカテゴリ一覧を横並びにする方法ですが、
おすすめ商品を横並びにしたように
下記の$arrBestProductsを$arrTreeに変化したのですが、
うまくいきませんでした。
何か良い方法はないでしょうか。


<!--{section name=cnt loop=$arrBestProducts step=4}-->


<div id="box">

<div class ="list_contents">
<a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[cnt].product_id|u}-->">
<img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrBestProducts[cnt].main_list_image|sfNoImageMainList|h}-->" width="150" height="150" alt="<!--{$arrBestProducts[cnt].name|h}-->" /></a>


<div class="name">
<a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[cnt].product_id|u}-->"><!--{$arrBestProducts[cnt].name|h}--></a>
</div>
<!--{assign var=price01 value=`$arrBestProducts[cnt].price01_min`}-->
<!--{assign var=price02 value=`$arrBestProducts[cnt].price02_min`}-->
<!--{assign var=price03 value=`$arrBestProducts[cnt].price03_min`}-->
<!--{if $price03 == $price02}-->
<p class="sale_price">販売価格:
<span class="price"><!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円</span>
</p>
<!--{* CUORECUSTOM START *}-->
<!--{else}-->

<span class="sale_title">セール対象商品</span>

 <p class="sale_price">販売価格:
 <strike><span class="price"><!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->円</span></strike>
</p>
            
<!--{/if}-->
<!--{* CUORECUSTOM END *}-->

</div>

<div class ="list_contents">
<!--{assign var=cnt2 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-3`}-->

<a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[$cnt2].product_id|u}-->">
<img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrBestProducts[$cnt2].main_list_image|sfNoImageMainList|h}-->" width="150" height="150" alt="<!--{$arrBestProducts[$cnt2].name|h}-->" /></a>

<div class="name">
<a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[$cnt2].product_id|u}-->"><!--{$arrBestProducts[$cnt2].name|h}--></a>
</div>

<!--{assign var=price01 value=`$arrBestProducts[$cnt2].price01_min`}-->
<!--{assign var=price02 value=`$arrBestProducts[$cnt2].price02_min`}-->

<!--{* CUORECUSTOM START *}-->
<!--{assign var=price03 value=`$arrBestProducts[$cnt2].price03_min`}-->
<!--{if $price03 == $price02}-->
<p class="sale_price">販売価格:
<span class="price"><!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</span>
</p>

<!--{else}-->
<span class="sale_title">セール対象商品</span>
<p class="sale_price">販売価格:
<strike><span class="price"><!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</span></strike>
</p>
<!--{/if}-->
<!--{* CUORECUSTOM END *}-->

</div>

<div class ="list_contents">
<!--{assign var=cnt3 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-2`}-->

<a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[$cnt3].product_id|u}-->">
<img src="<!--{$smarty.const.IMAGE_SAVE_URLPATH}--><!--{$arrBestProducts[$cnt3].main_list_image|sfNoImageMainList|h}-->" width="150" height="150" alt="<!--{$arrBestProducts[$cnt3].name|h}-->" /></a>

<div class="name">
<a href="<!--{$smarty.const.P_DETAIL_URLPATH}--><!--{$arrBestProducts[$cnt3].product_id|u}-->"><!--{$arrBestProducts[$cnt3].name|h}--></a>
</div>

<!--{assign var=price01 value=`$arrBestProducts[$cnt3].price01_min`}-->
<!--{assign var=price02 value=`$arrBestProducts[$cnt3].price02_min`}-->

<!--{* CUORECUSTOM START *}-->
<!--{assign var=price03 value=`$arrBestProducts[$cnt3].price03_min`}-->
<!--{if $price03 == $price02}-->
<p class="sale_price">販売価格:
<span class="price"><!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</span>
</p>
<!--{else}-->
<span class="sale_title">セール対象商品</span>
<p class="sale_price">販売価格:
<strike><span class="price"><!--{$price02|sfCalcIncTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> 円</span></strike>
</p>
           
<!--{/if}-->
<!--{* CUORECUSTOM END *}-->


</div>
スレッド表示 | 新しいものから 前のトピック | 次のトピック | トップ


 



ログイン


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

統計情報

総メンバー数は88,288名です
総投稿数は109,688件です

投稿数ランキング

1
seasoft
7365
2
468
3217
3
AMUAMU
2712
4
nanasess
2303
5
umebius
2085
6
yuh
1818
7
h_tanaka
1610
8
red
1567
9
mcontact
1240
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
796
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.