| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
thumbnail upload!! | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
thumbnail upload!!
Hi All
I'm having a problem with the product.tpl ? i want to be able to upload the thumbnail image if it's available but if not replace it with a custom noimage.tpl here is the code i have tried below. At the moment it will uploas the noimage.tpl when the thumbnail is available and will load up nothing at all when it isn't any help would be great!! {section name=image loop=$images} {if $images[image].avail eq ""} [img]../product_image.php?imageid={$images[image].imageid}[/img] {else}{include file="customer/main/noimage.tpl" }{/if} {/section} regards jon
__________________
http://www.savatrader.com/products/customer/home.php |
|||||||
#2
|
|||||||||
|
|||||||||
Well, at first glance it looks like you are asking it to see if a deteail image is available rather than a thumbnail.
{if $images[image].avail eq ""} is checking the _images table and that is used for the detail images. _thumbnails is used for the thumbs. However, there is no 'avail' feild in that table. Since X-CART in its default config will already get you 3/4 of the way to what you want (displaying a "no image" image when there is no tumb), I would look into the "image.php" file to see if you can edit that code to do what you want. image.php is what controls the displaying of the thumbs. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|