Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add new page via sts


Guest

Recommended Posts

I am currently running my template via STS. However, it is being a pain trying to figure out how to add a new page into my site. can some please explain to me how via sts? i understand how to do ti without sts but that seems to be useless a bit.

Link to comment
Share on other sites

what page are you trying to add?

i am trying to add a page where it shows the companies i carry. I need the page to include my header,right and left colum, and footer. This page is not in the oscommerce folder. www.bleubayclothing.com/osc

ull get an idea of how i want it, if u click on mens clothing.

thanks,

shadi

Link to comment
Share on other sites

I am currently running my template via STS. However, it is being a pain trying to figure out how to add a new page into my site. can some please explain to me how via sts? i understand how to do ti without sts but that seems to be useless a bit.

Here are the instructions I follow. After (or before) you do this you need to create your code in notepad (for your sts template) and name it new_page.php.html and upload it to your sts directory (my_templates?).Download the following files:

 

catalog/conditions.php

catalog/includes/languages/english/conditions.php

 

Save them (on your Hard Drive as):

 

catalog/template.php

catalog/includes/languages/english/template.php

 

When you want a new page:

 

Open catalog/template.php (on your HD) and change the following:

 

CODE

 

 

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

 

 

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONDITIONS, '', 'NONSSL'));

 

 

 

To:

 

CODE

 

 

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

 

 

 

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_NEW_PAGE, '', 'NONSSL'));

 

 

 

where NEW_PAGE is the name of your new page.

 

eg if you wanted a page called "about_us.php" the code would be:

 

CODE

 

 

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

 

 

 

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

 

 

 

Save and Upload both:

catalog/template.php

catalog/includes/languages/english/template.php

 

to their respective places on the live server, and then rename them BOTH to whatever, in the example: about_us.php

 

Set CHMOD 777 on your newly created and renamed:

 

catalog/includes/languages/english/about_us.php

 

Download, and open up includes/filenames.php and add the following:(correction from Rhea added here)

 

CODE: (In includes/filenames.php)

// New page about_us.php

 

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

 

 

 

Save and upload includes/application_top.php

 

Now go Admin > Tools > Define Languages > about_us.php

 

Done. It sounds complicated but once you get the hang of it, it takes no longer than 2 minutes. It maintains the proper Osc structure.

User is offlineProfile CardPM

Hope this helps

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...