Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

If an image is not available, is this possible?


Recommended Posts

I have thousands of products - half of those dont have images. I use easy populate - excel to create my images link pertaining to model numbers. Is there a way to display only a white background if an image isnt present?

 

It would be nearly impossible to find which have images and which dont.

Link to comment
Share on other sites

I have thousands of products - half of those dont have images. I use easy populate - excel to create my images link pertaining to model numbers. Is there a way to display only a white background if an image isnt present?

 

It would be nearly impossible to find which have images and which dont.

 

 

ofcourse, in includes/functions/html_output.php you have this function

 

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

 

as the first statement you should already have something like :

 

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

return false;

}

 

 

so in admin you can set images required to false and then this function will return no image if it does not exist.

Treasurer MFC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...