Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Trouble Adding To Information Box


AJRYAN

Recommended Posts

I am having difficulty editing my Information Box

to include additional information files.

 

I have searched the documentation and the help board.

The only stuff I have found are unresolved issues

in this regard.

 

Is it possible that this array is limited to 4 items?

 

I haven't a clue as to why this doesn't work otherwise.

 

Any help will be most appreciated.

Thanks.

 

Art

 

 

This is the error message:

 

Parse error: parse error, expecting `')'' in

/usr/hsphere/local/home/xxxxx/xxxxxxx.com/catalog/includes/boxes/information.php

on line 29

 

Here are the files and my modifications/additions:

 

 

information.php

 

 

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => BOX_HEADING_INFORMATION

);

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',

'text' => '<a href="' . tep_href_link(FILENAME_SHIPPING, '', 'NONSSL') . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

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

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

'<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a><br>'

 

 

##### LINE 29 #####

 

 

'<a href="' . tep_href_link(FILENAME_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_FAQ . '</a><br>'

'<a href="' . tep_href_link(FILENAME_RETURNS, '', 'NONSSL') . '">' . BOX_INFORMATION_RETURNS . '</a><br>'

);

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

 

 

application_top.php

 

 

define('FILENAME_FAQ', 'FAQ.php');

define('FILENAME_RETURNS', 'returns.php');

define('FILENAME_SHIPPING', 'shipping.php');

define('FILENAME_SPECIALS', 'specials.php');

 

 

english.php

 

 

// information box text in includes/boxes/information.php

define('BOX_HEADING_INFORMATION', 'INFORMATION');

define('BOX_INFORMATION_FAQ', 'Frequently Asked Questions');

define('BOX_INFORMATION_CONDITIONS', 'Terms and Conditions');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

define('BOX_INFORMATION_TESTIMONIALS', 'Testimonials');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

 

 


Link to comment
Share on other sites

I found the problem and fixed it, (missing periods, apparently delineating the array items) but now I have a different problem - the same as I noticed someone else had which was not resolved. The last entry in the box now shows:

 

BOX_INFORMATION_RETURNS

 

As far as I know, that issue was not resolved. Does anyone have an answer to this?

 

Thanks.

 

Art

Link to comment
Share on other sites

Sorry for the trouble - I finally figured it out.

 

I added the last line to the following in english.php and all is well:

 

// information box text in includes/boxes/information.php

define('BOX_HEADING_INFORMATION', 'INFORMATION');

define('BOX_INFORMATION_FAQ', 'Frequently Asked Questions');

define('BOX_INFORMATION_CONDITIONS', 'Terms and Conditions');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

define('BOX_INFORMATION_TESTIMONIALS', 'Testimonials');

define('BOX_INFORMATION_RETURNS', 'Returns');

 

While you're here, though, can you tell me how I can delete these posts?

 

Thanks.

Link to comment
Share on other sites

Sorry, Art, you can't...

 

They're here for the world to see for all eternity

 

:wink:

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...