Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

info box columns include on pages out of directory


bikesbuiltbetter

Recommended Posts

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

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

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

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

Archived

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

×
×
  • Create New...