Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Question about using additional images,


Guest

Recommended Posts

Hello,

My question here is that I need to figure out a simple way if there is one to basically say that if this image does not exist then go to this image.

I have tried to edit the html_output every which way I can but am obviously missing something here.

Below are my current Tep settings and I am attempting to implement something as to the below if into the script. If someone could help I would greatly appreciate it...

 

 

 

if ( !file_exists($src) ){

$src = DIR_WS_IMAGES . 'no_image.jpg';

 

 

function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '', $real_src = '') {

 

if ( (empty($src) || ($src == DIR_WS_IMAGES)) && (IMAGE_REQUIRED == 'false') ) {

 

return false;

 

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...