Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a new page to the info box


brissygal

Recommended Posts

Posted

Hi All

I iwsh to add a new page to my Info Box- a links page

I have used the info base and printed out the following info from this link

 

Adding New page to info box

 

But i think it was written for an older version of oscommerce as there are certain parts of it that I can not do.

 

I am using osCommerce 2.2 Milestone 2

Does any one have some info that updates this above info for the version that I am using?

 

Thanks

Posted

The article is up to date - please post the actual problem you are having :D

 

Matti

Posted
The article is up to date - please post the actual problem you are having? :D

 

Matti

 

I am unable to do the following

 

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.

 

 

<?php

/*

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

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

Copyright ? 2003 osCommerce

Released under the GNU General Public License

*/

require('includes/application_top.php');

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

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

 

 

As i dont have this section require('includes/application_top.php');

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

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US ));[/i]

 

 

Thanks

Posted
does anyone have any further help with this problem I am having?

 

Thanks

Iv just put one to gether links page made eazy

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Posted
I am unable to do the following

 

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.

 

You are using two files to do this (by copying and renaming them) - one is a language file - /includes/languages/english/shipping.php while the other is from your base (catalog) directory. The instruction is for the latter - shipping.php. The original code from this file is:

 

<?php
/*
?$Id: shipping.php,v 1.22 2003/06/05 23:26:23 hpdl Exp $

?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com

?Copyright (c) 2003 osCommerce

?Released under the GNU General Public License
*/

?require('includes/application_top.php');

?require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHIPPING);

?$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHIPPING));

 

this must be changed to:

 

<?php
/*
$Id: shipping.php,v 1.21 2003/02/13 04:23:23 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright ? 2003 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US );
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US ));


As i dont have this section require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT_US );
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT_US ));

 

The problem you are having I believe is that you are looking at the language file rather than the file from your base directory.

 

 

Matti

Archived

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

×
×
  • Create New...