View Single Post
  #8  
Old 10-26-2007, 04:11 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Featured Products Question

You just need to move the {if} statement around a little:

Replace this:

Code:
{capture name=dialog} {if $f_products ne ""} {if $total_pages gt 2} <br /> { include file="customer/main/navigation.tpl" } {/if} {include file="customer/main/products.tpl" products=$f_products featured="Y"} {if $total_pages gt 2} <br /> { include file="customer/main/navigation.tpl" } {/if} {else} {$lng.txt_no_featured} {/if} {/capture} {include file="dialog.tpl" title=$lng.lbl_featured_products content=$smarty.capture.dialog extra='width="100%"'}

with this:

Code:
{if $f_products ne ""} {capture name=dialog} {if $total_pages gt 2} <br /> { include file="customer/main/navigation.tpl" } {/if} {include file="customer/main/products.tpl" products=$f_products featured="Y"} {if $total_pages gt 2} <br /> { include file="customer/main/navigation.tpl" } {/if} {else} {$lng.txt_no_featured} {/capture} {include file="dialog.tpl" title=$lng.lbl_featured_products content=$smarty.capture.dialog extra='width="100%"'} {/if}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote