Dakota Posted March 19, 2004 Share Posted March 19, 2004 I use the PayPal module. After making the payment on paypal site, I got redirected back to oSC. Instead of purchase confirmation, I got this: Parse error: parse error in /var/www/html/oscommerce/includes/languages/english/checkout_success.php on line 20 also I got HEADING_TITLE TEXT_SUCCESS TEXT_NOTIFY_PRODUCTS African Mystery TEXT_THANKS_FOR_SHOPPING looked inside checkout_success.php. Looks like I should have gotten 'Your Order Has Been Processed!' etc. Interestingly, the order does appear in Admin. What is happening? Link to comment Share on other sites More sharing options...
Guest Posted March 19, 2004 Share Posted March 19, 2004 Please post the code for the checkout_success.php page (the language one). Sounds like it's a misplaced apostrophe or something. Link to comment Share on other sites More sharing options...
Dakota Posted March 19, 2004 Author Share Posted March 19, 2004 <?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', 'Thank you! Your order has been successfully processed! '); 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 More sharing options...
wizardsandwars Posted March 19, 2004 Share Posted March 19, 2004 Sneaky, sneaky, of you trying to slip those single quotes in there and pretend like you didnt' change anything. Try this. <?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', 'Thank you! Your order has been successfully processed! '); 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''); ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
Dakota Posted March 20, 2004 Author Share Posted March 20, 2004 Thanks. I had to change your last line though. For the record, this is the checkout_success that worked for me. <?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 2-5 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.