OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Image Source Code
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > General Support
green1
Hello,

I want to add an image to my content section of my homepage. I am new to php and not completely familiar with the code.

Here is the code that I have so far: define('TEXT_MAIN', '<img src="images/homepageimage.jpg">

What else do I need to add to make the image appear?
Note: The image file is placed in the oscommerce/catalog/images folder with the default images.

Thanks
Arctic Fox
define('TEXT_MAIN', '<img src="images/homepageimage.jpg">');

If you want an image directly on the index.php page, can't you just put it there without PHP? That's what I've done on a few pages.
digipete
Mike,

There should be an 'images' directory under your 'english' directory.

In other words: 'catalog/includes/languages/english/images'

Put your graphic files there in order for that image tag to work.


Good luck.
Pete
green1
thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.