donato Posted October 8, 2002 Posted October 8, 2002 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
veverkap Posted October 8, 2002 Posted October 8, 2002 i have a top navigation area on my site: http://shop.limoges.com It is a shopping area for our main site: http://www.limoges.com I have not actively tried to maintain the session id, but have noticed no problems. Most of our customers are using cookies, so it follows them throughout the session. Patrick Patrick
donato Posted October 8, 2002 Author Posted October 8, 2002 hey thanks for the reply...not using any drop down menus or anything like that, but it is dhtml... refer to this page: http://www.roma-addict.com/store do i update the default.php or is it application top.php? thx
unistar Posted October 8, 2002 Posted October 8, 2002 I have it on both (at the end)... I gotta delete one of them! :eh:
veverkap Posted October 9, 2002 Posted October 9, 2002 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
donato Posted October 9, 2002 Author Posted October 9, 2002 thanks Patrick!! Appreciate the feedback. :!:
osfdeath Posted October 9, 2002 Posted October 9, 2002 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
veverkap Posted October 9, 2002 Posted October 9, 2002 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
osfdeath Posted October 9, 2002 Posted October 9, 2002 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.