Thumbnail and if file_exists : View cart
Hi
Is there a way in the View_Cart if a thumbnail doesnt exist a genericimage is shown?
The code I am trying to use is:
<?php
if (file_exists($eCart1->DisplayInfo("Thumbnail"))) {
?>
<img src="<?php echo $eCart1->DisplayInfo("Thumbnail"); ?>" alt="" width="95" class="eC_ProductThumb" />
<?php
} else { ?>
<img src="images/noimage.png" alt="" width="95" " class="eC_ProductThumb" />
<?php
}
?>
---------------
As Im am testing this $eCart1->DisplayInfo("Thumbnail") it fails the test everytime any way around this?
It is purely that refrence that is failing as used outside of ecart with a normal recordset refrence this code works.
Any ideas?
Thanks
Mike