Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout_Confirmation text error


alexs

Recommended Posts

Posted

Hi,

 

When I am about to check out and it gets to theconfirmation step out of the 4 this error is up the top of the screen

 

"Parse error: parse error in /home/tech/public_html/store/includes/languages/english/checkout_confirmation.php on line 16"

 

All the the headings are wacked as well like "heading_delivery_address, heading_title" etc. The information is fine and the order can go through fine I just have no idea how to fix this..

 

I had a look at checkout_confirmation but I'm not exactly too familiar with php so I can't see any mistakes staring at me.

 

Any help would be great!!

 

-Alex

Posted

Post line 16 of your includes/languages/english/checkout_confirmation.php page here

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

<?php

/*

 $Id: checkout_confirmation.php,v 1.22 2002/11/11 20:13:58 hpdl Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/



define('NAVBAR_TITLE_1', 'Checkout');

define('NAVBAR_TITLE_2', 'Confirmation');



define('HEADING_TITLE', 'I'm Ready To Purchase!');



define('HEADING_DELIVERY_ADDRESS', 'Delivery Address');

define('HEADING_SHIPPING_METHOD', 'Shipping Method');

define('HEADING_PRODUCTS', 'Products');

define('HEADING_TAX', 'Tax');

define('HEADING_TOTAL', 'Total');

define('HEADING_BILLING_INFORMATION', 'Billing Information');

define('HEADING_BILLING_ADDRESS', 'Billing Address');

define('HEADING_PAYMENT_METHOD', 'Payment Method');

define('HEADING_PAYMENT_INFORMATION', 'Payment Information');

?>

 

Line 16 is the

define('HEADING_SHIPPING_METHOD', 'Shipping Method');

 

Hope that helps. I just can't see how to fix it.

 

-Alex

Posted

Change line 16 from

 

define('HEADING_TITLE', 'I'm Ready To Purchase!');

 

to..........

 

define('HEADING_TITLE', 'I'm Ready To Purchase!');

 

This should fix it!

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Posted

Thanks alot. For future reference you need to put the "" because if you just put the ' in the php file it stuff it around, is this right?

 

-Alex

Posted

Yeah basically this piece of code.....

 

define('HEADING_TITLE', 'I'm Ready To Purchase!');

 

...when read by php looks like this...

 

define('HEADING_TITLE', 'I'

 

...and it returns a parse error because it thinks the line has ended because its found a closing ' it now expects a ); to end the line.

 

So, in order to tell it that thats not actually the closing apostrophe you place a infront of the apostrophe.

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Archived

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

×
×
  • Create New...