Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add a new page..


megacool

Recommended Posts

1) Copy an info page like shipping.php or something and rename it to whatever you want eg newpage.php

 

2) Then copy the corresponding language file and rename it likewise newpage.php

 

3) Within the first page, change all the references FILENAME_SHIPPING to FILENAME_NEWPAGE

 

4) Within the lamguage file, change the

 

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

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

 

define('TEXT_INFORMATION', 'blah blah blah');

 

to whatever you want them to be

 

5) in application_top.php add

 

define('FILENAME_NEWPAGE', 'newpage.php');

 

somewhere near all the other filename defines - doesn't really matter where.

 

Go to www.yourdomain.com/catalog/newpage.php and there should be your new page.

Link to comment
Share on other sites

  • 1 year later...
1) Copy an info page like shipping.php or something and rename it to whatever you want eg newpage.php

 

2) Then copy the corresponding language file and rename it likewise newpage.php

 

3) Within the first page, change all the references FILENAME_SHIPPING to FILENAME_NEWPAGE

 

4) Within the lamguage file, change the

 

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

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

 

define('TEXT_INFORMATION', 'blah blah blah');

 

to whatever you want them to be

 

5) in application_top.php add

 

  define('FILENAME_NEWPAGE', 'newpage.php');

 

somewhere near all the other filename defines - doesn't really matter where.

 

Go to www.yourdomain.com/catalog/newpage.php and there should be your new page.

It doesn't work, do u know why? Thanks in advanced.

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /hsphere/local/home/xcess.net/catalog/includes/functions/database.php:13) in /hsphere/local/home/xcess.net/catalog/includes/functions/database.php on line 13

Link to comment
Share on other sites

It doesn't work, do u know why? Thanks in advanced.

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /hsphere/local/home/xcess.net/catalog/includes/functions/database.php:13) in /hsphere/local/home/xcess.net/catalog/includes/functions/database.php on line 13

 

 

It works now. I omit the point no. 4 just now. Thanks JulieCSM. :)

Link to comment
Share on other sites

5) in application_top.php add

 

define('FILENAME_NEWPAGE', 'newpage.php');

 

somewhere near all the other filename defines - doesn't really matter where.

 

Julie meant - add it to includes/filenames.php - not application_top.php

 

Vger

Link to comment
Share on other sites

Julie meant - add it to includes/filenames.php - not application_top.php

 

Vger

 

Yes - when I wrote that (way back in Jan 2004) I was talking about the MS1 version, which has since been replaced.

 

Thanks Vger!

Link to comment
Share on other sites

  • 3 years later...

HI,

 

I have followed all the above instructions, but still the new page is not showing. Here is what I have done..... can anyone see a mistake there, and point me in the right direction. Thanks

 

Copied and renamed "privacy.php" "links.php* changed all ref. from privacy -> links.

 

Copied and renamed all language corresponding pages I have german , english and dutch. Making sure I renamed privacy -> to links as instructed in this post.

 

IN includes/filenames.php I added define('FILENAME_LINKS', 'Links.php');

 

Nothing shows up at all :(

 

I am using version 2.2

 

Thank you in advance for your help

 

Ann

Link to comment
Share on other sites

HI,

 

I have followed all the above instructions, but still the new page is not showing. Here is what I have done..... can anyone see a mistake there, and point me in the right direction. Thanks

 

Copied and renamed "privacy.php" "links.php* changed all ref. from privacy -> links.

 

Copied and renamed all language corresponding pages I have german , english and dutch. Making sure I renamed privacy -> to links as instructed in this post.

 

IN includes/filenames.php I added define('FILENAME_LINKS', 'Links.php');

 

Nothing shows up at all :(

 

I am using version 2.2

 

Thank you in advance for your help

 

Ann

Actually I see that if I put in www.mydomain/links it's opening the page, but how do I put it under *Information* where all the other pages show up??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...