| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Display sub-category icon | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#2
|
|||||||
|
|||||||
![]() Just make a transparent gif and set that as your default image.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|