Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

so how do I add my own header?


rabbitseffort

Recommended Posts

Posted

I just want to know what do I need to do in the code so that I may add my own header, and other gifs. There must be something in the code that I need to change in header.php or footer.php...or any of the folders really, please tell me what line I need to change, I am struggling!

 

Thanks again and be well!

"I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings."

---Margaret Mead---

 

"The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer.

--Ken Kesey"

Posted
I just want to know what do I need to do in the code so that I may add my own header, and other gifs. There must be something in the code that I need to change in header.php or footer.php...or any of the folders really, please tell me what line I need to change, I am struggling!

 

Thanks again and be well!

 

Came across this in a search for something else. All the images used by osC are in the various image folders. Simply create your image and safe with the correct image name. If you look at the code for the pages in catalogue[catalog] you'll see references to images.

 

To change the top banner/header image

In includes/header.php on line 57 find the following

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

 

oscommerce.gif is the image change this to myimage.gif/jpg/png [gifs are nice and small]

'osCommerce' is the name of the image if no image is displayed. Change this to 'mystore'.

 

Another image question I've come across is "how do i change the image size?". The admin section -> configuration->images. Here you can set image attributes.

 

If you want to know when and how an image is being "included" and you know a bit of how php works, look at the source code of a /catalog/page.php and you should be able to work it out.

 

also documents is a brilliant source of practical configuration info.

 

regards, Tom

Archived

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

×
×
  • Create New...