Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC Layout...Any ideas


donato

Recommended Posts

Posted

Hi everyone...

 

Just have somewhat of a silly question... :oops:

 

I have noticed that many of the stores on display here have OSC as the root of there site.

I on the other hand have an existing site, but would like to add the OSC solution...my question is, if I was to add a navigation bar on the top of the store, and say people click on the 'guestbook' button, would this be possible?

 

I guess what I am trying to get at is, would the session id of the user or anyother php component of OSC get screwed up in anyway? By implementing this nav bar scheme? Any one have working examples? :lol:

 

thx in advance

Posted

if you want to make a pseudo-frame for the site, you would add all of the stuff from the top of your page to includes/header.php and then everything at the bottom to includes/footer.php. For example, on our site, we have a constant header (http://www.limoges.com/header.php) and a constant footer (http://www.limoges.com/footer.php). I just copied the contents of those files into the footer and header files in the include directory (making sure not to delete any osCommerce code). The one problem I had was that the images called in the files were both outside of my secure folder (shop.limoges.com), so I had to copy all the graphics into the secure folder and reference them in the footer and header files.

 

Patrick

Patrick

Posted

What about using ssi?

 

Main page is index.shtml and have an include in there for /catalog/default.php

 

Would that work?

(figured I'd ask before testing it out)

Troy

Posted

ssi would be a pain. if you went that way, it would be better to keep it all in php. do php includes. but i think it's better to just edit the header.php and footer.php files.

 

patrick

Patrick

Posted

No pain at all really - It is very simple (if you have ssi on available on your web server)

 

index.htm (framed page with top.htm and main.shtml)

top.htm has your menu system (whatever you want to use)

 

main.shtml is simply a page with an include to your catalog

<!--#include virtual="catalog/default.php" -->

 

The bonus is that you do not have to edit your php files at all.

Another plus is that your url never moves from the Address area in IE

(unless you open a link in a new window)

I just set up a quick example of what it looks like in less than a minute as I was writing this

http://www.anywherecomputer.com/index2.htm

Very simple stuff

Troy

Archived

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

×
×
  • Create New...