Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SCRIPT HELP needed -left column -new box


CraftySue

Recommended Posts

I am attempting :huh: to put a new box in the left column but get the following error:

Parse error: parse error, unexpected T_STRING, expecting ')' in .../httpdocs/catalog/includes/boxes/paypalinfo.php on line 18

catalog page with error

I made a new file in catalog/includes/boxes/paypalinfo.php

(File name in red)

 

Here is the code for paypalinfo.php... with line 18 in red...

<?php

/*

  $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

  osCommerce, Open Source E-Commerce Solutions

  http://www.oscommerce.com

 

  Copyright © 2003 osCommerce

 

  Released under the GNU General Public License

*/

?>

<!-- information //-->

          <tr>

            <td>

<?php

  $PayPal_box_contents = array();

  $PayPal_box_contents[] = array('text' => BOX_HEADING_SECURE PAYMENT);

 

  new infoBoxHeading($PayPal_box_contents, false, false);

 

  $PayPal_box_contents = array();

$PayPal_box_contents[] = array('text' => 'All catalog payments processed securely through PayPal. You need not join PayPal to pay.)

  new infoBox($PayPal_box_contents);

?>

            </td>

          </tr>

<!-- information_eof //-->

 

Can anyone see the error in line 18 or anywhere else?

Or might the error lie in english.php or

column_left.php

 

All that shows on the homepage of the catalog is the left column spread across the entire page with the above error displaying in bold print under the navbar.

This is my first attempt at adding a box.

I thought I followed directions correctly but evidently not. :blush:

Any help with this greatly appreciated!

Link to comment
Share on other sites

join PayPal to pay.');

 

Vger

 

Thanks for your reply Vger! :thumbsup:

 

I must have been blinded by hunger to have missed that.

Ate supper, came back , made the correction but still the same error.

I will work at it tomorrow though as I think I need a break...

Most likey fatigue wherein yet another error lies!

I did clear the browser cache. But I think my poor overheated hard drive needs

to sleep a bit -_- Tomorrow we shall start anew. :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...