Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Printable Catalog mod not working....HELP


Guest

Recommended Posts

I am trying to install the printable catalog mod and when I modify a file(includes/boxes/information.php) I get a parse error. What am I doing wrong? Here is the modified code:

 

<?php

/*

$Id: information.php,v 1.5 2002/01/11 22:04:06 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2001 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- 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') .

 

'">Payment Info</a><br>' .

 

 

'<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') .

 

'">' . BOX_INFORMATION_CONTACT . '</a>');

 

new infoBox($info_box_contents);

 

'<a href="' . tep_href_link(FILENAME_PRINT_CATALOG, '', 'NONSSL') . '">' . BOX_INFORMATION_PRINT_CATALOG .

 

'</a>');

 

?>

</td>

</tr>

<!-- information_eof //-->

Link to comment
Share on other sites

Instead of what you have below....

 

 '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') .



'">' . BOX_INFORMATION_CONTACT . '</a>');



new infoBox($info_box_contents);



'<a href="' . tep_href_link(FILENAME_PRINT_CATALOG, '', 'NONSSL') . '">' . BOX_INFORMATION_PRINT_CATALOG .



'</a>');

 

It should be like the code below...you didn't read the instructions very well.

 

 '<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') .



'">' . BOX_INFORMATION_CONTACT . '</a><br>' .



'<a href="' . tep_href_link(FILENAME_PRINT_CATALOG, '', 'NONSSL') . '">' . BOX_INFORMATION_PRINT_CATALOG .  '</a>');



new infoBox($info_box_contents);

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...