Guest Posted June 7, 2004 Share Posted June 7, 2004 When someone finishes checking out, and clicks confirm they get this message: Parse error: parse error, unexpected T_STRING in /www/b/bluemoonbikes/htdocs/catalog2/includes/languages/english/checkout_success.php on line 20 The order still comes through fine, Any ideas? TIA. Chris Falco here is my checkout_success.php file: <?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 Successfully Processed!'); define('TEXT_SUCCESS', 'Your order has been successfully processed! Products will usually ship the following business day.'); 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 at BlueMoonBikes.com'); 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 More sharing options...
OceanRanch Posted June 7, 2004 Share Posted June 7, 2004 Change define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at '%s''); to define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at \'%s\''); Also, don't use the Filemanger edit tool. It may be the culprit that removed your \'s. Just edit locally and ftp to your site if you have to. HTH Tom Link to comment Share on other sites More sharing options...
Paycheck Posted June 7, 2004 Share Posted June 7, 2004 I agree with Tom it is the delineation of the tick marks on your lines he has called out. JM Always remember, we need patience, guidance and most of all understanding. My Contributions Link to comment Share on other sites More sharing options...
♥yesudo Posted June 7, 2004 Share Posted June 7, 2004 I also agree. Your online success is Paramount. Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2004 Share Posted June 9, 2004 I changed the line like you said, however I still have the same parse errors. when it says line 20 is it counting blank lines? I cant imagine what could be causing this. I've even tried using a stock version of checkout_success.php and I get the same error. Link to comment Share on other sites More sharing options...
♥yesudo Posted June 9, 2004 Share Posted June 9, 2004 yes include blank lines. Your online success is Paramount. Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2004 Share Posted June 9, 2004 Now, I'm completely lost as to why this is happening, I'm using the original checkout_success.php file. Is there some other way to redirect the page after the checkout is finished? People are placing multiple orders......thinking nothing is going through. HELP! :blink: :unsure: Link to comment Share on other sites More sharing options...
♥yesudo Posted June 9, 2004 Share Posted June 9, 2004 are you sure you are looking at the right file - the one you posted is the language file should you be looking at the root checkout_success.php file. Your online success is Paramount. Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2004 Share Posted June 9, 2004 Well the error I get when checking out is Parse error: parse error, unexpected T_STRING in /www/b/bluemoonbikes/htdocs/catalog2/includes/languages/english/checkout_success.php on line 20 I was looking in catalog2/includes/languages/english/checkout_success.php is there somewhere else I should be looking? BTW, thanks for all the help so far guys! Link to comment Share on other sites More sharing options...
♥yesudo Posted June 9, 2004 Share Posted June 9, 2004 ignore me - long day. repost the whole file here again. Your online success is Paramount. Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2004 Share Posted June 9, 2004 Here is my checkout_success.php file, aparently there is a problem on line 20 <?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 Successfully Processed!'); define('TEXT_SUCCESS', 'Your order has been successfully processed! Products will usually ship the following business day.'); 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 at BlueMoonBikes.com'); 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 More sharing options...
♥yesudo Posted June 9, 2004 Share Posted June 9, 2004 try: <?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 Successfully Processed!'); define('TEXT_SUCCESS', 'Your order has been successfully processed! Products will usually ship the following business day.'); 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 at BlueMoonBikes.com'); 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\''); ?> Your online success is Paramount. Link to comment Share on other sites More sharing options...
Guest Posted June 9, 2004 Share Posted June 9, 2004 Holy poopy pants! it works fine now! Thanks so much, if you ever need a bike or anything for a bicycle, let me know I'll give you a great deal! Thanks a million, Chris Falco Link to comment Share on other sites More sharing options...
♥yesudo Posted June 9, 2004 Share Posted June 9, 2004 np Your online success is Paramount. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.