Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

If no feature don't show dialog box

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-01-2006, 03:11 PM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default If no feature don't show dialog box

The current setup is that if there is no feature product, it shows the dialog box with the text of " there are no available featured product...".

How can I make it so if there is no feature products, just don't show anything not even the dialig box.
__________________
X-Cart Gold 4.0.17
Reply With Quote
  #2  
Old 04-02-2006, 05:12 AM
 
balinor balinor is offline
 

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

Default

Use this for featured.tpl:

Code:
{if $f_products ne ""} {capture name=dialog} {if $total_pages gt 2} { include file="customer/main/navigation.tpl" } {/if} {include file="customer/main/products.tpl" products=$f_products featured="Y"} {if $total_pages gt 2} { include file="customer/main/navigation.tpl" } {/if} {/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
  #3  
Old 04-03-2006, 06:41 AM
 
Lucent88 Lucent88 is offline
 

Senior Member
  
Join Date: Aug 2005
Posts: 147
 

Default

exactly what I'm looking for, thank you very much.
__________________
X-Cart Gold 4.0.17
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:24 PM.

   

 
X-Cart forums © 2001-2020