Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Broken images


Guest

Recommended Posts

Posted

Some categories and products don't have an image. Can i stop these images from displaying in the first place (can causing X) to appear?

 

Alternatively of course i can upload 1x1 see through image, as a placeholder... but that is a workaround, rather than anything too useful.

Posted
Some categories and products don't have an image. Can i stop these images from displaying in the first place (can causing X) to appear?

 

Alternatively of course i can upload 1x1 see through image, as a placeholder... but that is a workaround, rather than anything too useful.

 

as you can see, if no image filename is defined for a product, no image is returned if you set require image to false in admin.

 

 

// The HTML image wrapper function

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

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

return false;

}

 

.....

Treasurer MFC

Archived

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

×
×
  • Create New...