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

Display sub-category icon

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 11-11-2005, 12:13 PM
 
balinor balinor is offline
 

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

Default

Just make a transparent gif and set that as your default image.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 03:02 AM.

   

 
X-Cart forums © 2001-2020