php for no image, if image is not present
Hi,
I'm trying to figure out how to tell Joomshopping cart to hide the image that says "no image" if an image is not found. I just want it to close up that space basically.
I tried "display: none" which doesn't show the image on the front end, but an image is still present in the code with an image class that applies padding that I don't want. All efforts to zero those out haven't worked... I'm a newbie to php so I am struggling. Any ideas? Below is the original code..."noimage;" is set up in Controller to tell it to use "noimage.gif"
PHP Code:
<td class="image">
<a href = "<?php print $category->category_link;?>"><img class = "jshop_img" src = "<?php print $this->image_category_path;?>/<?php if ($category->category_image) print $category->category_image; else print $this->noimage;?>" alt="<?php print htmlspecialchars($category->name);?>" title="<?php print htmlspecialchars($category->name);?>" /></a>
</td>
Thank you!