Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I add extra PHP pages


brenridley

Recommended Posts

Posted

What is the easiest most effective method to add additional pages? I have already placed the navigation in the header. Now I want to make additional pages similar to shipping.php.

 

See site: http://www.janhargrave.com

 

I need to add pages for the menu (About Jan, Speech Topics, Clients, Book Jan For Your Next Event, Quiz) I would like to keep the right and left columns. (Similar to the shipping page.)

 

http://www.janhargrave.com/store/shipping.php

 

Thanks in Advance!

Bren

Posted
You can look in the contributions section for something that will do this.

If you cannot find anything i will expain it here

Nic

 

I did find the "Extra Pages" contribution. But it requires myphpadmin to modify the SQL. Is there an easier way?

Posted

Easier? not sure. it is pretty straight forward.

 

You will need to do this for each extra page you need to add, where are you adding the link to them?

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted
Easier? not sure. it is pretty straight forward.

 

You will need to do this for each extra page you need to add, where are you adding the link to them?

Nic

 

I added a menu in header.php.

Posted

Ok so extra info would not be good for you in any case!

 

For this we will call it your About_Jan.php

 

In you catalog folder (or top level if your store is root) you will find a file called shipping.php, we will base this on that.

 

Either download a copy or use one from a fresh install package providing you are using oscommerce RC versions, if not grab one from your version.

 

Once on your desk top rename it to about_jan.php.

 

Open the file look for

 

lines 15 & 17

 

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

 

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

 

Make them look like

 

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

 

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

 

Save it and upload it.

 

Next,

 

In your catalog / includes / languages / english folder there is another file called shipping.php

 

Download it to your desk top rename it about_jan.php

Open it

Find these line (only ones there apart from the oscommerce copyright)

 

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

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

 

define('TEXT_INFORMATION', 'Put here your Shipping & Returns information.');

 

 

Change to

 

 

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

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

 

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

 

 

Save it and upload it.

 

 

Open catalog / includes / filenames.php

 

add

 

define('FILENAME_ABOUT_JAN', 'about_jan.php');

 

 

Thats it!

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted
Ok so extra info would not be good for you in any case!

 

For this we will call it your About_Jan.php

 

In you catalog folder (or top level if your store is root) you will find a file called shipping.php, we will base this on that.

 

Either download a copy or use one from a fresh install package providing you are using oscommerce RC versions, if not grab one from your version.

 

Once on your desk top rename it to about_jan.php.

 

Open the file look for

 

lines 15 & 17

 

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

 

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

 

Make them look like

 

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

 

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

 

Save it and upload it.

 

Next,

 

In your catalog / includes / languages / english folder there is another file called shipping.php

 

Download it to your desk top rename it about_jan.php

Open it

Find these line (only ones there apart from the oscommerce copyright)

 

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

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

 

define('TEXT_INFORMATION', 'Put here your Shipping & Returns information.');

 

 

Change to

 

 

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

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

 

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

 

 

Save it and upload it.

 

 

Open catalog / includes / filenames.php

 

add

 

define('FILENAME_ABOUT_JAN', 'about_jan.php');

 

 

Thats it!

 

THANK YOU! I had already done the same thing except for the filenames.php part. That's what I needed to know.

Archived

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

×
×
  • Create New...