bikesbuiltbetter Posted November 22, 2008 Share Posted November 22, 2008 Hi every one i just found this osCommerce and think it will be a great addition to my existing site. http://www.bikesbuiltbetter.com I am redesining the site and was wondering if any one has found a way to include the info box colums on pages out side the installed directoy. This would allow me to navigate to the shoping from all pages on the site. osCommerce installed and running in default mode now with my mods to the look at http://www.bikesbuiltbetter.com/shop_specials/index.php any help would be greatly appreciated Link to comment Share on other sites More sharing options...
ABCommerce! Posted November 23, 2008 Share Posted November 23, 2008 See if this helps, you will have to modify it a bit but it should work http://www.oscommerce.com/forums/index.php?showtopic=187263 Link to comment Share on other sites More sharing options...
bikesbuiltbetter Posted November 23, 2008 Author Share Posted November 23, 2008 Not exactly what i need i would like to have the box columns on all pages ie http://www.bikesbuiltbetter.com/shop_specials/index.php - Catalog Index Page http://www.bikesbuiltbetter.com/hours/hours.php - I would like to have boxes on these pages as well I know i could copy the code of the html output of the catalog index and create a static include but i was wondering if there was a way to do it dynamically. the problem seems to be how to include globals and possibly cookie path Link to comment Share on other sites More sharing options...
ABCommerce! Posted November 23, 2008 Share Posted November 23, 2008 The problem seems to be how to include globals and possibly cookie path That is what it does. Link to comment Share on other sites More sharing options...
bikesbuiltbetter Posted November 23, 2008 Author Share Posted November 23, 2008 I know thats what it does how doi get it to work Link to comment Share on other sites More sharing options...
ABCommerce! Posted November 23, 2008 Share Posted November 23, 2008 What part are you having problems with? Link to comment Share on other sites More sharing options...
bikesbuiltbetter Posted November 23, 2008 Author Share Posted November 23, 2008 I am trying to include the "includes/column_left.php and the includes/column_right.php on pages in other directories that are not part of oC I tried creating my own files in the directory that contain just the tables and application_top.php and application_bottom.php and so long as my page is in the root "catalog" directory that worked fine its when i try to create a file outside the "catalog" in my case "shop_specials" it will not parse. any ideas. You will have to excuse me for being naive about this script i am just now familiarizing myself with it so far so good except the includes Any Help would be appriciated Link to comment Share on other sites More sharing options...
ABCommerce! Posted November 23, 2008 Share Posted November 23, 2008 The thread I gave you earlier has the answer for you. The problem is that it has to find the files (such as application_top.php) which is in the folder root/shop_specials. If you put a page in the folder root/hours it looks for application_top.php in the wrong place, it would look in root/hours/include/application_top.php which is not where it is. So you have to tell it where the file is actually located so it will all work properly. So on the page you want to create add this; chdir('/home/***/public_html/'); require('includes/application_top.php'); Of course the (home/****/public_html/ will have to match what is on your site. That info can be found in your catalog/includes/configure.php file. If that does not work try chdir('../shop_specials/'); require('includes/application_top.php'); Link to comment Share on other sites More sharing options...
bikesbuiltbetter Posted November 23, 2008 Author Share Posted November 23, 2008 OK Thank You Much I will give that a try later tonight but seems like that will do what i need Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.