gaspower Posted March 18, 2008 Posted March 18, 2008 Hello, I am using the following code for the catalog side, so if a product does not have an image, it does not show a broken link, but will show the default nonimage.jpg, In /includes/functions/html_output.php find function tep_image(... Replace CODE if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) { return false; } with CODE if (empty($src)) return false; if (($src == DIR_WS_IMAGES) || (file_exists($src) == 0)) { if (file_exists(DIR_WS_IMAGES . 'noimage.jpg') == 0) { return false; } else { $src = DIR_WS_IMAGES . 'noimage.jpg'; } } How do I perform the same task for the admin side? Thanks JR
Recommended Posts
Archived
This topic is now archived and is closed to further replies.