トップページに表示するオススメ商品を2列づつ繰り返し
表示するという形式にしたいのですが変更しながらテスト
していたら表示されるものの4つしか表示されなくなって
しまいました・・・(汗
現在のbest5.tplは下記のようになっております。
変数のミスだとは思うのですが修正する箇所が何度見ても
わかりませんでした。
大変お手数ですが添削をお願いできますでしょうか?
<!--▼おすすめ情報ここから-->
<div id="recomendarea">
<h2>
<img src="<!--{$TPL_DIR}-->img/org/osusume.gif" width="588" height="30" alt="おすすめ情報" />
</h2>
<!--{section name=cnt loop=$arrBestProducts step=3}-->
<div class="recomendblock">
<div class="recomendleft">
<!--{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}-->
<p><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->">
<img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=130&height=130" alt="<!--{$arrBestProducts[cnt].name|escape}-->" />
</a></p>
<h3>
<a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[cnt].product_id}-->"><!--{$arrBestProducts[cnt].name|escape}--></a>
</h3>
<!--{assign var=price01 value=`$arrBestProducts[cnt].price01_min`}-->
<!--{assign var=price02 value=`$arrBestProducts[cnt].price02_min`}-->
<p><span class="price">
<!--{if $price02 == ""}-->
<!--{$price01|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{else}-->
<!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{/if}-->円 (税込み)</span>
</p>
</div>
<div class="recomendright">
<!--{assign var=cnt2 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-1` }-->
<!--{if $arrBestProducts[$cnt2]|count > 0}-->
<!--{if $arrBestProducts[$cnt2].main_list_image != ""}-->
<!--{assign var=image_path value="`$arrBestProducts[$cnt2].main_list_image`"}-->
<!--{else}-->
<!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}-->
<!--{/if}-->
<p><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[$cnt2].product_id}-->">
<img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$image_path|sfRmDupSlash}-->&width=130&height=130" alt="<!--{$arrBestProducts[$cnt2].name|escape}-->" />
</a></p>
<h3>
<a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrBestProducts[$cnt2].product_id}-->"><!--{$arrBestProducts[$cnt2].name|escape}--></a>
</h3>
<!--{assign var=price01 value=`$arrBestProducts[$cnt2].price01_min`}-->
<!--{assign var=price02 value=`$arrBestProducts[$cnt2].price02_min`}-->
<p><span class="price">
<!--{if $price02 == ""}-->
<!--{$price01|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{else}-->
<!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}-->
<!--{/if}-->円 (税込み)</span>
</p>
<!--{/if}-->
</div>
</div>
<!--{/section}-->
</div>
<!--▲おすすめ情報ここまで-->