Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to create a new page


kosaytak

Recommended Posts

Posted

I would like to add "about us" page in the menu. How to create a new page? Is there an add-on to do that?

 

Thanks.

Posted

Hello,

 

This is very simple to do.

 

Open catalog/privacy.php

 

near the top of the page find: $Id: privacy.php

 

and change it to:

 

and change it to: $Id: about_us.php

 

then find:

 

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

 

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

 

and change to:

 

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

 

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

 

"Save as" about_us.php

 

Now open catalog/includes/filenames.php

 

just before the ending ?>

 

place this:

 

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

 

and save it.

 

now open catalog/includes/languages/english/privacy.php

 

near the top find:

 

$Id: privacy.php

 

and change it to:

 

$Id: about_us.php

 

find:

 

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

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

 

define('TEXT_INFORMATION', 'Put here your Privacy Notice information.');

 

and change it to:

 

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

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

 

define('TEXT_INFORMATION', 'Put here your About Us information.');

 

"Save as" about_us.php

 

Upload all three files to the proper directories in your shop and you're all set.

Posted

Don't forget to link it.

 

In includes/boxes/information.php find

                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

Change to

                                        '<a href="' . tep_href_link(FILENAME_ABOUT) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' .
                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

In includes/languages/english.php find

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

Right after that add

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

Posted

Brian,

 

Thanks, I forgot about the information box link.

 

- Hal

Posted

Brian,

 

Thanks, I forgot about the information box link.

 

- Hal

No problem. :thumbsup:

Archived

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

×
×
  • Create New...