Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add some non-commere pages


Guest

Recommended Posts

Posted

Here's my question: For our business, I want to add some pages (e.g. FAQ, Our Story, Get Involved, and several others). I am using an STS template and running 2.2RCA, and have a good knowledge of HTML and CSS but am pretty overwhelmed by this project, which is my first attempt writing PHP documents. Is it as simple as copying the header info from something like "create_new_account.php" or "contact.php" and adjusting the anchors and body content or what? The pages would ideally be surrounded by all the same sidebars, header and footer as the rest of the site. What's the proper method here? Again, I beg you forgive my relative lack of know how here, OSC is my first venture into PHP (excluding WordPress I guesss, but that is just silly easy). Having a ball learning this all, any guidance is vastly appreciated.

 

SAM

Posted

Did I say "writing PHP documents"? I meant editing! Anyway. Word.

Posted

For me here is what I did. In your catalog/ open that contact.php and at the top near line 15 change the contact us part to what ever you want.

 

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

 

Save as what ever you want. Upload that file.

 

Open catalog/includes/filenames.php. At the bottom add, before ?> add the following:

 

define('FILENAME_XXXXXXX', 'ooooooo.php');

 

XXXXXXX = the name you used in the last step

ooooooo = the name of the file you are going to create in next step

 

Save filenames.php and upload

 

Open catalog > includes > languages > english > conditions.php and change to meet you needs. Rename it to the name you used in the last step. Save and upload.

 

Now you can reference that file (ooooooo.php) where ever you want.

 

Hope all that makes sense. :lol: :thumbsup:

 

Tim

How to secure your site. A must read

Archived

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

×
×
  • Create New...