Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Logo Help


Guest

Recommended Posts

Posted

I have installed osCommerce on our site, and so far it appears to be what we are looking for. It was designed VERY well. I especially like the way that it is broken up into sections, like header, footer, left side, right side, etc. Kudos to the designers!

 

Now for my problem. I need help placing our header, but not your normal help.

 

I have found the file for the header (conveniently named header.php!) and the place in the file for the header graphic. Now, here is the problem. We have 2 different headers. We have 1 header for browser widths of 800 and another header for 1024. We have JavaScript functions placed in a seperate file for detecting the browser width and loading the correct header, and different functiond for detecting the browser type (IE, NN). These work fine for our regular website pages, so I know they work.

 

Our JS file is added to our pages using:

<script type="text/javascript" src="../misc.js"></script>

placed in the head.

 

The functions are placed at the beginning of the body using:

<!-- Browser and Width Detect //-->

<script type="text/javascript">BrowserCheck2()</script>

<script type="text/javascript">CheckBrowserWidth2()</script>

 

I have tried placing these in products/index.php (osCommerce location). The ../misc.js is the correct path to the file location (have used it on another page that is down 1 level).

 

Website main pages (Level 1)

Tips (Our tips section)(Level 2)

Products (osCommerce location)(Level 2)

 

I placed the ../misc.js in the index.php (osCommerce) 1 line below the stylesheet in the head.

I placed the functions on the first line below the body start in the same file. I also tried commenting out and also removing the header files in header.php.

 

Can anyone help? If you need code or more clarification, just let me know.

 

Thanks in advance, Lee

Archived

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

×
×
  • Create New...