View Single Post
  #1  
Old 11-11-2005, 09:29 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default 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
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote