バージョン選択

フォーラム

メニュー

オンライン状況

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

サイト内検索

 > 管理機能 > オススメ一列

管理機能

新規スレッドを追加する

スレッド表示 | 新しいものから 前のトピック | 次のトピック | 下へ
投稿者 スレッド
sakurai07
投稿日時: 2008/12/13 10:50
対応状況: −−−
長老
登録日: 2008/2/29
居住地:
投稿: 179
オススメ一列
EC-CUBEバージョン 1.4.6
PHPバージョン PHP 4.4.7
DBバージョン MySQL 4.1.21

1系でおすすめを一列にしたのですがなぜか登録した2つめ、4つめが表示されてしまいます。

PHPがあまり詳しくないのでおしえていただけると助かります。

宜しくお願いします。

▼ソース▼
<!--{*
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
*
* http://www.lockon.co.jp/
*}-->
<!--▼おすすめ情報ここから--><img src="<!--{$smarty.const.URL_DIR}-->img01/pickup.jpg" alt="おすすめ情報" width="166" height="30"><table width="166" border="0" cellspacing="0" cellpadding="0" style="border-bottom:1px #CECFCE solid; border-left:1px #CECFCE solid; border-right:1px #CECFCE solid; margin-bottom:15px; background-image:url(../img01/s_bg.jpg); background-repeat:repeat-x;"">



<!--{section name=cnt loop=$arrBestProducts step=2}-->
<tr valign="top">
<td>

<!--{if $arrBestProducts[cnt].main_list_image != ""}--><!--{assign var=image_path value="`$arrBestProducts[cnt].main_list_image`"}--><!--{else}--><!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}--><!--{/if}-->

<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:5px;">
<tr valign="top">
<td align="center" valign="middle"><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->"><img src="<!--{$smarty.const.URL_DIR}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=120height=120" alt="<!--{$arrBestProducts[cnt].name|escape}-->"></a></td>
</tr>
<tr valign="top">
<td align="center" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0" summary=" ">
<tr>
<!--{assign var=price01 value=`$arrBestProducts[cnt].price01_min`}-->
<!--{assign var=price02 value=`$arrBestProducts[cnt].price02_min`}-->
<td style="font-size:12px;"><span style="font-size:11px; line-height:180%;"><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->"><!--{$arrBestProducts[cnt].name|escape}--></a></span><br>
<span class="red">価格(税込)</span><span class="redst">:
<!--{if $price02 == ""}-->
<!--{$price01|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{else}-->
<!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{/if}-->
円</span></td>
</tr>
<tr><td height="5"></td></tr>
<tr>
<td style="font-size:11px;"><!--{$arrBestProducts[cnt].comment|escape|nl2br}--></td>
</tr>
</table></td>
</tr>
</table>

<!--{assign var=cnt2 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-1` }-->

<!--{if !$smarty.section.cnt.last}--> </td>
<tr valign="top">
<td>
<!--{/if}-->

<!--{/section}--></td>
<tr valign="top">
<td> </td>
</table>
<!--▲おすすめ情報ここまで-->
homan
投稿日時: 2008/12/13 10:59
対応状況: −−−
仙人
登録日: 2007/7/2
居住地: 宮崎県宮崎市
投稿: 633
Re: オススメ一列
<!--{section name=cnt loop=$arrBestProducts step=2}-->

の部分のstep=2を消して

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

としてみてください。
他の部分にも変更が必要かもしれませんが、
ちょっと時間がないので取り急ぎレスです。


----------------
このコミュニティでの投稿はボランティアの範囲に留めさせていただいています。個別の相談やカスタマイズは有償にて承っておりますのでご相談下さい。

[url=http://www.eccube-school.jp/]EC-CUBE

sakurai07
投稿日時: 2008/12/13 11:25
対応状況: −−−
長老
登録日: 2008/2/29
居住地:
投稿: 179
Re: オススメ一列
できました。ありがとうございます。

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


 



ログイン


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

統計情報

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

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1649
8
red
1570
9
mcontact
1298
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.