Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Messing up the Checkout Success page.


Morigan

Recommended Posts

While trying to edit the text on the check out success page I went to-

 

/var/www/html/includes/languages/English/check-out_success

 

And changed delivery in 3/5 working days to 7/14

 

Now after I try to return to my website from 2Check out it says this-

Parse error: parse error, unexpected T_STRING in /var/www/html/includes/languages/english/checkout_success.php on line 20

 

Help please...

Link to comment
Share on other sites

Post the file you made the changes to.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

<?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 3-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

It worked fine all I changed was 3-7 to 7-14 and that messed it up.

I have tried changing it back but no luck.

 

How are you editing your file? Your backslashes \ are getting stripped from the file so I am going to assume that you are using the online file manager. If so stop doing so and edit the files locally using a text editor and ftp them up to your server. If you do not have a clean copy on your computer you can use the one below. save it in notpad then upload it to your server.

 

<?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 7-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\'');

?>

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...