Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple Question changing an image in OS Commerce


DDDannn

Recommended Posts

Posted

Hello Everyone,

 

I would like to ask what, is probably a very simple question!

How do I change an image from a .jpg to a .gif? The issue is this:

 

I have a static image on index.php on my site that I want to change to an animated gif to brighten it up but I would like to know what areas to modify so that it shows up. Obviously the style sheet is one but i would like to know what else so that the banner.jpg is replaced by banner.gif.

 

Thanks very much,

 

DDDannn

Posted

I think there are three places an image name could be found:

* a CSS style file

* hardcoded into a PHP file

* stored in the database (e.g., a category icon or product photograph)

 

Usually it will be in just one of these categories, but you could find it used in multiple places within that category. Just change the name to match what the file has been changed to (mybanner.jpg -> mybanner.gif) and you should be good to go. Just remember to keep looking for other places this image might be used. Upload the new file first, change all uses of it, and finally delete the old image file (if you wish). This should minimize disturbances to a running shop during the changeover.

Archived

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

×
×
  • Create New...