Jump to content

Removing Placeholder Image


Recommended Posts

hi,

 

How do I remove the placeholder image "No Image Available" when I have not uploaded an image to a product (or a category for this matter)... I really do not see the usefulness of this ... if we have not uploaded an image there isn't one... so why announce that there is not one ?

 

I need to display 17 products within a category, and have the category display the one and only image for these products.

 

its virtual product - 17 mp3 files from an album. There is only one album cover to display. We do not need it to appear 17 times per product.

 

further, if adding a description to the category it overlaps the image for that category.

 

all in all im finding this quite limiting.

 

thanks in advance!

 

http://musicwithmarnie.com/shop/

please see Downloadable CDs

 

Lani

 

Link to comment
Share on other sites

you can replace the default image on img/c folder

 

or remove the image if is not loaded instead of load the no image file

 

{if $subcategory.id_image}
<img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{else}
<img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
{/if}
 
just remove
 
{if $subcategory.id_image}
<img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
 
{/if}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...