Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

INFORMATION BOX


Guest

Recommended Posts

I am wanting to add a few pages with general information about a client's business. I would like to simply add links to the bottom left box "Information".

 

I can have edited everything far enough to have all the text right, and I have created a php file (in this case called options.php) with the information I want. My problem is that when you click the link it reads

 

 

www.mystore.com/osCommerce/FILENAME_OPTIONS

 

 

I can't seem to find where to attach the actual link.

 

I know that it needs to eventually read

 

www.mystore.com/osCommerce/options.php

 

Any Suggestions???

Link to comment
Share on other sites

you have a couple of options.

 

You can install a contribution called Information Pages or go into includes/filenames.php and define the filename. You also need to ensur ethe same filename is in your languages directory.

Link to comment
Share on other sites

Hi,

 

I came across this info in my travells, I haven't used it but it might help.

Cheers

 

HOW TO ADD A NEW PAGE TO OSC.

 

First go to your /catalog/ root directory and open shipping.php and do Save As,

then rename the page, I'll name mine new_page.php. Be sure you save it to your

catalog root dir. Now you have a clone of your shipping.php file.

 

Now to go to /catalog/includes/languages/your_language/ and find shipping.php

and Save As this file also, this name should be the same as the previous page,

I'll name mine new_page.php also. Make sure you save it to your

/language/your_language dir. Now you have a language file for your new page.

 

You have created two new pages and now for some editing.

 

Open /catalog/includes/application_top.php and enter this code.

Edit this to match the name of your new_page.

Code:

 

define('FILENAME_NEW_PAGE', 'new_page.php');

 

 

I put mine right at the top of the other defines.

 

Now open /catalog/new_page.php and find this piece of code:

Code:

 

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

 

 

And change it to match your new new_page. Mine will be:

Code:

 

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

 

 

 

And on the next line you need to change this line:

Code:

 

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

 

 

And change this to match your new_page name:

Code:

 

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

 

 

 

Now go to /catalog/includes/languges/your_language/shipping.php And edit it to your taste.

Link to comment
Share on other sites

  • 1 month later...

Archived

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

×
×
  • Create New...