Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New box problem


ramsydney

Recommended Posts

Posted

I have created a new box and have placed it in the right hand column. I want the box to feature straight html code such as my contact details (phone, fax, email link, etc). I've called the new box contact.php but am unable to work out how to amend the content which currently looks like this:

 

?>

<!-- contact //-->

<tr>

<td>

<?php

$info_box_contents = array();

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

new infoBoxHeading ($info_box_contents , false, false);

$info_box_contents = array();

$info_box_contents [] = array('text' => '<a href="' . tep_href_link (FILENAME_PAGE1 ) . '">' .

BOX_MY_NEW_BOX_PAGE1 . '</a><br>' .

'<a href="' . tep_href_link( FILENAME_PAGE2) . '">' .

BOX_MY_NEW_BOX_PAGE2 . '</a><br>' .

'<a href="' . tep_href_link( FILENAME_PAGE3) . '">' .

BOX_MY_NEW_BOX_PAGE3 . '</a><br>' .

'<a href="' . tep_href_link( FILENAME_PAGE4) . '">' .

BOX_MY_NEW_BOX_PAGE4 . '</a><br>' .

'<a href="' . tep_href_link( FILENAME_PAGE5) . '">' .

BOX_MY_NEW_BOX_PAGE5 . '</a>');

new infoBox ($info_box_contents );

?>

</td>

</tr>

<!-- information_eof //-->

 

I am also confused about how I rename the box from "BOX_HEADING_MY_NEW_BOX" to "Contact Us".

 

Thanks a lot.

Posted

If you only have one language in use in your site you could just use

'Contact us'

instead of

BOX_HEADING_MY_NEW_BOX

 

Otherwise you need to define BOX_HEADING_MY_NEW_BOX in includes/languages/english.php as well as whatever other languages you use.

Do, or do not. There is no try.

 

Order Editor 5.0.6 "Ultra Violet" is now available!

For support or to post comments, suggestions, etc, please visit the Order Editor support thread.

Posted
I have created a new box and have placed it in the right hand column. I want the box to feature straight html code such as my contact details (phone, fax, email link, etc). I've called the new box contact.php but am unable to work out how to amend the content which currently looks like this:

 

?>

<!-- contact //-->

<tr>

<td>

<?php

$info_box_contents = array();

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

new infoBoxHeading ($info_box_contents , false, false);

$info_box_contents = array();

$info_box_contents [] = array('text' => '<a href="' . tep_href_link (FILENAME_PAGE1 ) . '">' .

BOX_MY_NEW_BOX_PAGE1 . '</a><br>' .

'<a href="' . tep_href_link( FILENAME_PAGE2) . '">' .

BOX_MY_NEW_BOX_PAGE2 . '</a><br>' .

'<a href="' . tep_href_link( FILENAME_PAGE3) . '">' .

BOX_MY_NEW_BOX_PAGE3 . '</a><br>' .

'<a href="' . tep_href_link( FILENAME_PAGE4) . '">' .

BOX_MY_NEW_BOX_PAGE4 . '</a><br>' .

'<a href="' . tep_href_link( FILENAME_PAGE5) . '">' .

BOX_MY_NEW_BOX_PAGE5 . '</a>');

new infoBox ($info_box_contents );

?>

</td>

</tr>

<!-- information_eof //-->

 

I am also confused about how I rename the box from "BOX_HEADING_MY_NEW_BOX" to "Contact Us".

 

Thanks a lot.

 

 

 

This site may help you as it shows you how to add a new page to your information box Click Here

Archived

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

×
×
  • Create New...