Guest Posted March 10, 2006 Posted March 10, 2006 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.
boxtel Posted March 10, 2006 Posted March 10, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.