Very nice mod. I'm using it on a site I'm putting together right now. I had a problem when trying to use the last part of the code:
Quote:
If you want to change the way the product/category images are displayed just go to the Administration area and select the General settings / Appearance options and select or deselect the options to Show default category image and Show default product image (they should be at the bottom of the page).
This modification will not remove the added space taken up by the image if it were displayed.
If you want to do this, then you will need to change about 15 other files.
Typically, you just need to look for references to the text product_thumbnail.tpl in all of the files and put the following code around where the display table is built to display the image and remove the modification to the file skin1/product_thumbnail.tpl
Code:
{insert name="is_product_image_avail" assign="image_avail" productid=$productid variantid=""}
{if $image_avail}
*** DO CODE TO DEFINE TABLE AND DISPLAY IMAGE ***
{/if}
|
When I use the insert name and {if} statement outside of the skin1/product_thumbnail.tpl file, it's not working properly and removes thumbnail images from all products, not just those with the default image.
Here is code I use in product.tpl and products.tpl for my thumbnails:
Code:
<table cellpadding="1" cellspacing="0">
<tr><td class="ImgBorder2">
<table cellpadding="5" cellspacing="0">
<tr><td class="ImgBorder1">{include file="modules/Special_Offers/customer/product_offer_thumb.tpl" product=$products[product]}</td></tr>
</table>
</td></tr>
</table>
{$lng.lbl_see_details}
That code creates a border around the thumbnails. You can view the following link to see it in action
http://www.ezcruiseconnection.com/home.php?cat=9 although when you view it, I'll probably have the "see details" link inside of the border tables. That seems to be the only way I can remove the default images but still have something inside of the tables that don't go away, as seen here
http://www.ezcruiseconnection.com/home.php?cat=14.
Other than that - it's very nice and thanks a million for the time you donated to it.