Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Default 'No Image to Display' image


chrisw184

Recommended Posts

Posted

Hi

 

Is there a way to specify a stored default image if the admin has no image to upload when adding a new product?

 

I have set the 'Image Required' to false so that it doesn't show a broken image icon but I would rather it set a stored default image if the admin adds a new product. I just think it would be easier for them instead of having to upload the default image every time they have no product image.

 

Hope somebody can help.

 

Thanks in advance.

 

Chris

Posted

Simply open up phpmyadmin (database manager) in your hosting panel.

 

Click on the table called "Products", you'll see a field called "products_image".

 

Edit this field, change the "Null" to "Not Null" and where is says "Default" type in the filename of the default image. Like "noimage.gif".

 

Now if a product is uploaded with no image, it will have this as its default.

 

**Note this will only effect products added after this mod, previous added products will still have "Null"**

Posted
Simply open up phpmyadmin (database manager) in your hosting panel.

 

Click on the table called "Products", you'll see a field called "products_image".

 

Edit this field, change the "Null" to "Not Null" and where is says "Default" type in the filename of the default image. Like "noimage.gif".

 

Now if a product is uploaded with no image, it will have this as its default.

 

**Note this will only effect products added after this mod, previous added products will still have "Null"**

 

Thanks, i'll try that as I haven't populated the cart yet.

 

Just one question..do I have to specify the image folder e.g. images/noimage.gif or does it look in the default folder for it?

 

Thanks again.

 

Chris

Archived

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

×
×
  • Create New...