Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is this possible ?


iainsanderson

Recommended Posts

Posted

I will eventually have 2.5 million books on my site and at the moment if I do not have an image for the book I just use a default image not available.

 

What I would like to do is this: Instead of putting the default image not available, I would like to just use the proper image name example 123456789.jpg and then if this image exist it will then overwrite the default image which would be set as a background picture.

 

I am not sure if I have explained this correctly.

 

At the end of the day this will enable me to just load all my books up and as I get the images I could just transfer the into my remote images folder. Stopping me having to update the products each time or in bulk with EP

 

Cheers

 

Iain

Posted
I will eventually have 2.5 million books on my site and at the moment if I do not have an image for the book I just use a default image not available.

 

What I would like to do is this: Instead of putting the default image not available, I would like to just use the proper image name example 123456789.jpg and then if this image exist it will then overwrite the default image which would be set as a background picture.

 

I am not sure if I have explained this correctly.

 

At the end of the day this will enable me to just load all my books up and as I get the images I could just transfer the into my remote images folder. Stopping me having to update the products each time or in bulk with EP

 

Cheers

 

Iain

 

well, you could use something like :

 

if (file_exists(DIR_WS_IMAGES.$your_image)) {

display DIR_WS_IMAGES.$your_image

} else {

display the not available image

}

Treasurer MFC

Archived

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

×
×
  • Create New...