Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

call for FILENAME_PARTNERS


Guest

Recommended Posts

Hello people, having a minor headache here.

 

In my Header.php i have a menu option as follows.

 

<a class="horiz_menu" href="<?php echo tep_href_link(FILENAME_PARTNERS) ?>"><img src="images/marker_menu.gif" width="3" height="3" alt="" border="0" style="margin-right:3px; margin-bottom:2px;margin-left:6px; " /><?php echo MENU_ITEM2 ?></a>

 

When this menu item is clicked it will fetch Partners.php from my root directory. It does this without trouble.

 

Now when i look in Partners.php in my root directory, at the top it shows the directory for the php file it needs to display the text on this page and is as follows...

 

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

 

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

 

 

Now this works fine also.

 

But what i did was i renamed the first code to look for a file called terms.php in root. like this...

 

<a class="horiz_menu" href="<?php echo tep_href_link(FILENAME_TERMS) ?>"><img src="images/marker_menu.gif" width="3" height="3" alt="" border="0" style="margin-right:3px; margin-bottom:2px;margin-left:6px; " /><?php echo MENU_ITEM2 ?></a>

 

And then in Terms.php , i changed the top line to

 

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

 

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

 

I included a Terms page in includes/languages/english/ dir

 

So basically i did everything the same as partners. But i get an error message when trying to access Terms from front page.

 

It tells me there is no such folder or file in includes/languages/english/FILENAME_TERMS

 

i tried changing it from FILENAME_TERMS to just TERMS and also to TERMS.PHP and nothing has worked.

 

Do i need to modify something else to have it recognize this file?

 

 

Please any help is greatly appreciated.

 

Matt

Link to comment
Share on other sites

You need to open /includes/filenames.php in a text editor and add the line:

 

  define('FILENAME_TERMS', 'terms.php');

 

Have fun! :)

 

 

Sonia

Link to comment
Share on other sites

You need to open /includes/filenames.php in a text editor and add the line:

 

  define('FILENAME_TERMS', 'terms.php');

 

Have fun! :)

Sonia

 

 

you rock sonia!

 

Thanks, i will give it a try!

 

Matt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...