X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   If no feature don't show dialog box (https://forum.x-cart.com/showthread.php?t=20882)

Lucent88 04-01-2006 03:11 PM

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.

balinor 04-02-2006 05:12 AM

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}


Lucent88 04-03-2006 06:41 AM

exactly what I'm looking for, thank you very much.


All times are GMT -8. The time now is 02:38 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.