Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding A New Page


Freedom Fighter

Recommended Posts

Hey Guys,

In my information box, I want to put a link called "Scratch & Dent" When the customer clicks it, I want a page to load in the center with information regarding Scratch & Dent. Could someone guide me to how I come about this? www.extremealterations.com is the store.

 

Thank you

Extreme Alterations

Link to comment
Share on other sites

1) copy one of the old ones to the new one

(ie: shipping.php to newfunction.php)

2) look at the variables and change them

(ie: FILENAME_SHIPPING to FILENAME_NEWFUNCTION)

3a) go into application_top.php in the includes and add the new functions filename

(ie: define('FILENAME_NEWFUNCTION','newfunction.php'); )

3b) go into languages and edit the appropriate language file (ie: english.php) with the appropriate BOX define

(ie: define ('BOX_INFORMATION_NEWFUNCTION','New Function'); )

4) go to the appropriate language area

(ie: /catalog/includes/languages/english/ )

5) copy the language file over to the new filename

(ie: shipping.php to newfunction.php)

6) edit the components of the new file to contain what you want

7) go to the includes/boxes

8) edit information.php

9) add the line to link to the new function

(ie: '<a href="' . tep_href_link(FILENAME_NEWFUNCTION, '', 'NONSSL') . '">' . BOX_INFORMATION_NEWFUNCTION . '</a>');//New function )

 

note: make sure that you include the proper <br> and "." to tie the line to the ones above it, and make sure that you remove the ";" for the prior line (assumption, you are adding this at the bottom of the current information)

Link to comment
Share on other sites

nice reply :)

 

almost ready for the WIKI site, why not add it there ?

Robert

 

We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;)

Link to comment
Share on other sites

nice reply :)

 

almost ready for the WIKI site, why not add it there ?

 

Considering I wrote a book on programming, it's in the blood. Doesn't mean I like doing it... :oha: but feel free to move it if you like.

 

ps: thanks for the compliment

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...