> 管理機能 > オススメ一列 |
管理機能
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | 下へ |
投稿者 | スレッド |
---|---|
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}--> としてみてください。 他の部分にも変更が必要かもしれませんが、 ちょっと時間がないので取り急ぎレスです。
|
sakurai07 |
投稿日時: 2008/12/13 11:25
対応状況: −−−
|
長老 登録日: 2008/2/29 居住地: 投稿: 179 |
Re: オススメ一列 できました。ありがとうございます。
|
スレッド表示 | 新しいものから | 前のトピック | 次のトピック | トップ |