Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help With Replacement Of Admin Non Images


gaspower

Recommended Posts

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...