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)
-   -   Display sub-category icon (https://forum.x-cart.com/showthread.php?t=17903)

chamberinternet 11-11-2005 09:29 AM

Display sub-category icon
 
hello ...

i'm currently modifying skin1/customer/main/subcategories.tpl

basically what i want to do is if an icon hasnt been assigned to a category/subcategory then rather than displaying the "no image available" image, i'd rather display nothing instead ...

the code i have is as follows:

{if $tmp}
<td width="146">
<img src="{if $current_category.icon_url}{$current_category.icon _url}{else}
{$xcart_web_dir}/icon.php?categoryid={$cat}
{/if}
" class="productImage">
</td>
{/if}

can anyone help on what addtional code (if any) i would need to add to prevent it from displaying an image should an icon isnt defined ...

thank you & regards

shafiq :sK

balinor 11-11-2005 12:13 PM

Just make a transparent gif and set that as your default image.


All times are GMT -8. The time now is 06:51 AM.

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