Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error after you place order


rerdlen

Recommended Posts

Once an order is submitted it says the following:

 

Parse error: parse error, unexpected T_STRING in /usr/var/vhosts/ibistekapparel/store/includes/languages/english/checkout_success.php on line 20

 

 

 

Now here is: /usr/var/vhosts/ibistekapparel/store/includes/languages/english/checkout_success.php:

 

 

 

<?php

/*

$Id: checkout_success.php,v 1.12 2003/04/15 17:47:42 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE_1', 'Checkout');

define('NAVBAR_TITLE_2', 'Success');

 

define('HEADING_TITLE', 'Your Order Has Been Processed!');

 

define('TEXT_SUCCESS', 'Your order has been successfully processed! Your products will arrive at their destination within 10-14 working days.');

define('TEXT_NOTIFY_PRODUCTS', 'Please notify me of updates to the products I have selected below:');

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">'My Account'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">'History'</a>.');

define('TEXT_CONTACT_STORE_OWNER', 'Please direct any questions you have to the <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">store owner</a>.');

define('TEXT_THANKS_FOR_SHOPPING', 'Thanks for shopping with us online!');

 

define('TABLE_HEADING_COMMENTS', 'Enter a comment for the order processed');

 

define('TABLE_HEADING_DOWNLOAD_DATE', 'Expiry date: ');

define('TABLE_HEADING_DOWNLOAD_COUNT', ' downloads remaining');

define('HEADING_DOWNLOAD', 'Download your products here:');

define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at '%s'');

?>

Link to comment
Share on other sites

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">\'My Account\'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">\'History\'</a>.');

 

 

 

You need the backslashes.

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">\'My Account\'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">\'History\'</a>.');

You need the backslashes.

 

OK, I changed that and now its giving me a different error:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/var/vhosts/ibistekapparel/store/includes/languages/english/checkout_success.php on line 29
Link to comment
Share on other sites

You ALWAYS need backslashes before apostrophes that are 'inside' other apostrophes. It's the same on line 29.

 

define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at \'%s\'');

 

 

This seems weird, but when I change it and add the backslashes it won't save. I've changed it in the oscommerce backend. Ive changed it on my computer and reuploaded it, but everytime I check the slashes are not there? Have you ever heard of this? Thank you for all of your help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...