Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Automatic "No Pic Available" image (.jpg/.gif)


zionp

Recommended Posts

Hi

 

I'm VERY new to OsCommerce and was wondering if there is an addon or coding of somesort that would automatically add a "No Pic Available" image (.jpg/.gif) if the user doesn't add an image to the product?

 

Please help.

Thanks

Link to comment
Share on other sites

Hi

 

I'm VERY new to OsCommerce and was wondering if there is an addon or coding of somesort that would automatically add a "No Pic Available" image (.jpg/.gif) if the user doesn't add an image to the product?

 

Please help.

Thanks

 

If you are comfortable with altering your database slightly, you could make the default value for products.products_image "NoPicAvailableImage.jpg" and then of course make sure that you have such an image in the images folder.

 

After backing up your database of course, the syntax would be something like this:

ALTER TABLE products ALTER COLUMN products_image SET DEFAULT 'NoPicAvailableImage.jpg';

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...