機能要望 > フロント機能 > 新入荷商品ブロックを追加し、商品説明も載せたい |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
enzine |
投稿日時: 2010/8/21 20:19
対応状況: −−−
|
新米 ![]() ![]() 登録日: 2010/8/20 居住地: 投稿: 4 |
自分で順位を指定して商品ランキングを表示したい 4個表示にすることはできました。
新しいものから順に並ぶので ランキングには不向きかもしれません。 自分で順位を指定して表示できればいいのですが・・・ ▼productFlag.tpl <!--▼新着商品ここから--> <!--{if count($arrFlagProducts) > 0}--> <div id="weddingRank" class="section"> <h3 class="indent">ウエディングのお祝い用バルーンギフトランキング</h3> <!--{section name=cnt loop=$arrFlagProducts step=4}--> <div class="section"> <p><img src="images/index/rank01.png" alt="バルーンギフトランキング1位" width="155" height="18" /></p> <p class="item"><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[cnt].product_id}-->"> <!--{if $arrFlagProducts[cnt].main_list_image != ""}--> <!--{assign var=image_path value="`$arrFlagProducts[cnt].main_list_image`"}--> <!--{else}--> <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}--> <!--{/if}--> <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrFlagProducts[cnt].main_image|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrFlagProducts[cnt].name|escape}-->" /> </a></p> <!--{assign var=price01 value=`$arrFlagProducts[cnt].price01_min`}--> <!--{assign var=price02 value=`$arrFlagProducts[cnt].price02_min`}--> <p><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[cnt].product_id}-->"><!--{$arrFlagProducts[cnt].name|escape}--></a><br /> 価格<span class="font-size-2minus">(税込)</span>: <!--{if $price02 == ""}--> <!--{$price01|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> <!--{else}--> <!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> <!--{/if}-->円<br /> <span class="coment"><!--{$arrFlagProducts[cnt].comment|escape|nl2br}--></span></p> </div> <!--{assign var=cnt2 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-3` }--> <!--{if $arrFlagProducts[$cnt2]|count > 0}--> <div class="section"> <p><img src="images/index/rank02.png" alt="バルーンギフトランキング2位" width="155" height="18" /></p> <p class="item"><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[$cnt2].product_id}-->"> <!--{if $arrFlagProducts[$cnt2].main_list_image != ""}--> <!--{assign var=image_path value="`$arrFlagProducts[$cnt2].main_list_image`"}--> <!--{else}--> <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}--> <!--{/if}--> <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrFlagProducts[$cnt2].main_image|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrFlagProducts[$cnt2].name|escape}-->" /> </a></p> <!--{assign var=price01 value=`$arrFlagProducts[$cnt2].price01_min`}--> <!--{assign var=price02 value=`$arrFlagProducts[$cnt2].price02_min`}--> <p><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[$cnt2].product_id}-->"><!--{$arrFlagProducts[$cnt2].name|escape}--></a><br />価格<span class="font-size-2minus">(税込)</span>:<em class="font-color-red"> <!--{if $price02 == ""}--> <!--{$price01|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> <!--{else}--> <!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> <!--{/if}-->円</em><br /> <span class="coment"><!--{$arrFlagProducts[$cnt2].comment|escape|nl2br}--></span></p> </div> <!--{/if}--> <!--{assign var=cnt3 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-2` }--> <!--{if $arrFlagProducts[$cnt3]|count > 0}--> <div class="section"> <p><img src="images/index/rank03.png" alt="バルーンギフトランキング3位" width="155" height="18" /></p> <p class="item"><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[$cnt3].product_id}-->"> <!--{if $arrFlagProducts[$cnt3].main_list_image != ""}--> <!--{assign var=image_path value="`$arrFlagProducts[$cnt3].main_list_image`"}--> <!--{else}--> <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}--> <!--{/if}--> <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrFlagProducts[$cnt3].main_image|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrFlagProducts[$cnt3].name|escape}-->" /> </a></p> <!--{assign var=price01 value=`$arrFlagProducts[$cnt3].price01_min`}--> <!--{assign var=price02 value=`$arrFlagProducts[$cnt3].price02_min`}--> <p><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[$cnt3].product_id}-->"><!--{$arrFlagProducts[$cnt3].name|escape}--></a><br />価格<span class="font-size-2minus">(税込)</span>:<em class="font-color-red"> <!--{if $price02 == ""}--> <!--{$price01|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> <!--{else}--> <!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> <!--{/if}-->円</em><br /> <span class="coment"><!--{$arrFlagProducts[$cnt3].comment|escape|nl2br}--></span></p> </div> <!--{/if}--> <!--{assign var=cnt4 value=`$smarty.section.cnt.iteration*$smarty.section.cnt.step-1` }--> <!--{if $arrFlagProducts[$cnt4]|count > 0}--> <div class="section lastchild"> <p><img src="images/index/rank04.png" alt="バルーンギフトランキング4位" width="155" height="18" /></p> <p class="item"><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[$cnt4].product_id}-->"> <!--{if $arrFlagProducts[$cnt4].main_list_image != ""}--> <!--{assign var=image_path value="`$arrFlagProducts[$cnt4].main_list_image`"}--> <!--{else}--> <!--{assign var=image_path value="`$smarty.const.NO_IMAGE_DIR`"}--> <!--{/if}--> <img src="<!--{$smarty.const.SITE_URL}-->resize_image.php?image=<!--{$arrFlagProducts[$cnt4].main_image|sfRmDupSlash}-->&width=65&height=65" alt="<!--{$arrFlagProducts[$cnt4].name|escape}-->" /> </a></p> <!--{assign var=price01 value=`$arrFlagProducts[$cnt4].price01_min`}--> <!--{assign var=price02 value=`$arrFlagProducts[$cnt4].price02_min`}--> <p><a href="<!--{$smarty.const.URL_DIR}-->products/detail.php?product_id=<!--{$arrFlagProducts[$cnt4].product_id}-->"><!--{$arrFlagProducts[$cnt4].name|escape}--></a><br />価格<span class="font-size-2minus">(税込)</span>:<em class="font-color-red"> <!--{if $price02 == ""}--> <!--{$price01|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> <!--{else}--> <!--{$price02|sfPreTax:$arrInfo.tax:$arrInfo.tax_rule|number_format}--> <!--{/if}-->円</em><br /> <span class="coment"><!--{$arrFlagProducts[$cnt4].comment|escape|nl2br}--></span></p> </div> <!--{/if}--> <!--{/section}--> </div> <!--{/if}--> <!--▲新着商品情報ここまで--> |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
![]() |
enzine | 2010/8/20 18:59 |
![]() |
AMUAMU | 2010/8/21 15:20 |
![]() |
enzine | 2010/8/21 16:49 |
» ![]() |
enzine | 2010/8/21 20:19 |
![]() |
55eccube | 2010/8/22 10:35 |
![]() |
enzine | 2010/8/23 16:49 |
![]() |
AMUAMU | 2010/8/23 18:47 |
![]() |
ゲスト | 2010/8/23 19:39 |
![]() |
Masashige | 2010/8/25 13:11 |
