oscommercenewbie Posted April 9, 2005 Share Posted April 9, 2005 I have thousands of products - half of those dont have images. I use easy populate - excel to create my images link pertaining to model numbers. Is there a way to display only a white background if an image isnt present? It would be nearly impossible to find which have images and which dont. Quote Link to comment Share on other sites More sharing options...
boxtel Posted April 9, 2005 Share Posted April 9, 2005 I have thousands of products - half of those dont have images. I use easy populate - excel to create my images link pertaining to model numbers. Is there a way to display only a white background if an image isnt present? It would be nearly impossible to find which have images and which dont. <{POST_SNAPBACK}> ofcourse, in includes/functions/html_output.php you have this function function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '', $border = '0') { as the first statement you should already have something like : if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } so in admin you can set images required to false and then this function will return no image if it does not exist. Quote Treasurer MFC Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.