Developer forum

Forum » Ecommerce - Standard features » Show default image in product list if real one is broken or missing

Show default image in product list if real one is broken or missing

Roman Sterlingov
Reply
We are using alt. images setting in the eCom product listing module.
All our images are in a certain directory and are named systematically. But if some image is missing, product listing does not display anything, we would like to display "no image" image.
Can this be done by Dynamic Web without JS/CSS hacks?


Replies

 
Thomas Kjærgaard
Reply
This post has been marked as an answer
Use getImage..

It's located at [your-domain]/admin/public/getimage.aspx

here can you set a alternative file..

Now generate the URL and replace the link in productlist.html with the generated code.
<img src="/admin/public/getimage.aspx?Image=<!--@Ecom:Product.ImageLarge.Clean-->&AlternativeImage=/Files/Billeder/foto.jpg&Format=jpg&Width=200&Height=200" />


Votes for this answer: 0
 
Roman Sterlingov
Reply
Perfect, thanks!

 

You must be logged in to post in the forum