![]() |
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 |
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.