Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding a new page


mattih5

Recommended Posts

Hi,

 

I need to add a page to the current OS Commerce site I have been developing. I understand that all pages are linked to a corresponding language file in the languages directory.

 

The link I wish to create is called links.php which exists in the catalog directory of OSC. In the left hand menu I have created a link to the page: links.php.

 

I have also created a language file called links.php and placed this in the corresponding language directory.

 

I also notice the following lines of code in the head of the links document which I changed.

 

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LINKS);
 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LINKS));

 

I can't understand why my page isn't being displayed, I just keep getting this error:

 

Warning: main(includes/languages/english/FILENAME_LINKS): failed to open stream: No such file or directory in /home/httpd/alibongo/httpdocs/catalog/links.php on line 15

Fatal error: main(): Failed opening required 'includes/languages/english/FILENAME_LINKS' (include_path='.:/usr/share/pear') in /home/httpd/alibongo/httpdocs/catalog/links.php on line 15

 

Is their a file which maps all file and corresponding language files together or something?

 

Thanks,

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...