Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Adding pages to Information (Info) Box


Recommended Posts

I would like to add pages (like "faq.php") to the existing info box manually. There is a Contribution for adding pages to the Infobox using the Admin Panel. I'd rather not go through Admin. I only need to add a couple of pages on one of my many websites. I'd like to fashion pages after the privacy.php page and have them appear in the existing infobox. Does anyone know exactly which files I need to alter in order to have new php pages.


So what I have done already is created the additional pages by using privacy.php as a template. (So I have already made faq.php, detailedfeatures.php, etc). I've changed the tags, entered the lines on the filenames.php as needed. What else do I need to do to make this work, so I can see the page in the Infobox and be able to link it. I know I need to change the Infobox.php and change lines there too, but I'm not sure how to. And I'm not sure what other files need changing to make this work. Any help would be greatly appreciated.

Link to comment
Share on other sites

Try this, i found it on a search a couple of weeks ago in contributions.




Adding a box page gives the store owner more flexibility for new pages in their store.


Add Box Pages


Adding a page to one of the boxes allows you to add more information easily to your site. Our example box will be the includes/boxes/information.php box.


Five files are necessary to change to add more pages to your box. These files can be altered for an already displayed box or a new box.


Files to change are:








Open the catalog/shipping.php page in your favorite editor and save it as another name, for instance, about_us.php.


In the new about_us.php file that you have just made change the following require and $breadcrumb filenames to the ABOUT_US name of your new file.




$Id: shipping.php,v 1.21 2003/02/13 04:23:23 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions


Copyright © 2003 osCommerce

Released under the GNU General Public License



require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US );

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US ));



Now it is time to define this new page called about_us.php so in catalog/includes/filenames.php copy one of the defines, paste it underneath or at the bottom of the file, and change the name to your new about_us.php file like this:


define('FILENAME_ABOUT_US', 'about_us.php');


The catalog/includes/languages/english.php file needs to have a listing of this file in whichever box it will be called from in your store. It is defined in the information box for an example.

// information box text in includes/boxes/information.php

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

define('BOX_INFORMATION_ABOUT_US', 'About Us');



Open the shipping.php page in catalog/includes/languages/english/ folder and other languages folders and save as about_us.php like the catalog/shipping.php page already done.




$Id: about_us.php,v 1.4 2002/11/19 01:48:08 dgw_ Exp $

osCommerce, Open Source E-Commerce Solutions


Copyright © 2002 osCommerce

Released under the GNU General Public License


define('NAVBAR_TITLE', 'About Us');

define('HEADING_TITLE', 'About Us');





The define for about_us.php will need to be added to the information itself in:



'<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS, '', 'NONSSL') . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_ABOUT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_ABOUT_US . '</a>'




You can change the order of any of these but be careful that the last one has the closing tag '</a>'); and the listings before end with '</a><br>' .


Thanks to everyone who added to this tutorial

Link to comment
Share on other sites


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

  • Create New...