Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is this correct? '">' . Login . '</a><br>' .


SXM

Recommended Posts

Hello, :thumbsup:

 

It is in the folder: catalog/includes/boxes/information.php

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_LOGIN) . '">' . Login . '</a><br>' .

 

 

I just want to know if the the part where it says: ('">' . Login . '</a><br>' .) is correct or I have to add something else.

 

SXM

Link to comment
Share on other sites

if i am understanding what you want to do, being that you want to chage the menu texts. the files you want to be editing are the files under the includes/languages directory

 

the sorts of lines you are looking for are like the example below

 

define('BOX_BOXTOCHANGE_LINKTOCHANGE', 'thelinktextwanttochange');

 

note in the function is only the link text that you need to change if you change anything else you will need to change all your files relating to the link to reflect the change.

 

 

could you post more information about exactly what you are trying to do in future we cant answer a question properly without the facts

 

The above file you mention only controls one box, the informatin box that contains your terms an conditions etc,

Link to comment
Share on other sites

Yes, I'm sorry because I didn't explain things correctly.

 

I just want to add more links to the menu (information). I am using the information.php folder and I want to make sure that the codes or names that I am using are the correct ones.

 

Like I showed you the code had this in one part: (FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . and, when I change that to: (FILENAME_LOGIN) . '">' . Login . '</a><br>' . it works perfect. I just want to make sure that it is the right way to change the codes because I don't want to have problems with the web-site later.

 

Here is the code:

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_ABOUTUS) . '">' . BOX_INFORMATION_ABOUTUS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_LOGIN) . '">' . Login . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

 

 

Thank you

 

 

SXM.

 

 

 

 

 

 

if i am understanding what you want to do, being that you want to chage the menu texts. the files you want to be editing are the files under the includes/languages directory

 

the sorts of lines you are looking for are like the example below

 

define('BOX_BOXTOCHANGE_LINKTOCHANGE', 'thelinktextwanttochange');

 

note in the function is only the link text that you need to change if you change anything else you will need to change all your files relating to the link to reflect the change.

could you post more information about exactly what you are trying to do in future we cant answer a question properly without the facts

 

The above file you mention only controls one box, the informatin box that contains your terms an conditions etc,

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...