Results 1 to 4 of 4

checkout_success parsing error

This is a discussion on checkout_success parsing error within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi, When I try to change the text message in english/checkout_success.php from: define('TEXT_SUCCESS', 'Your order has been successfully processed! Your ...

      
  1. #1
    Lurker
    Join Date
    Apr 2005
    Posts
    1
    Rep Power
    0


    Default checkout_success parsing error

    Hi,
    When I try to change the text message in english/checkout_success.php from:

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

    to:

    define('TEXT_SUCCESS', 'Your order has been successfully processed!');

    I'm getting the following page error message:

    Parse error: parse error, unexpected T_STRING in /home/outdo2/public_html/store/includes/languages/english/checkout_success.php on line 20

    can anyone give me a clue as to why?

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default RE: checkout_success parsing error

    Line 20 in my /english/checkout_success.php file is:

    Code:
    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>.');
    Is this yours too? Did you happen to edit that one as well?
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Aug 2005
    Posts
    24
    Rep Power
    0


    Default Checkout success text not showing up.

    Ok, this may be user error, but I have searched and worked on this for a couple hours. (Seems to only happen since the owner installed the new oscmax upgrade patch - looks good but...). When a customer checks out, the checkout success page that is displayed does not have any of the following as defined in checkout_success.php:

    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.');

    It does show the Please notify...and Thank you for shopping with us online.

    Any suggestions?

    Here are full contents of /english/checkout_success.php:

    <?php
    /*
    $Id: checkout_success.php,v 1.1.1.1.2.1.2.2 2005/09/21 20:57:22 Michael Sasek Exp $

    osCMax Power E-Commerce
    http://oscdox.com

    Copyright (c) 2005 osCMax, 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\'');
    ?>
    Jay

    If you don\'t make mistakes, you\'re not working on hard enough problems. And that\'s a big mistake. ~F. Wikzek

  4. #4
    osCMax Testing Team typhus's Avatar
    Join Date
    Aug 2005
    Location
    Midlands, UK
    Posts
    28
    Rep Power
    0


    Default RE: Checkout success text not showing up.

    When a customer checks out, the checkout success page that is displayed does not have any of the following as defined in checkout_success.php:
    Did you manage to resolve this. I've just had the same thing happen to me. It did work originally. I think it occured after I set the auto-return url in Paypal.

    I have disabled the auto-return since, but this hasn't fixed it.

Similar Threads

  1. how to get the order total on checkout_success.php ?
    By johnr3 in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 06-17-2006, 09:23 AM
  2. Checkout_Success Page error
    By GeorgeW in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 09-27-2005, 04:57 PM
  3. help, code not parsing out properly.
    By loba in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 03-21-2005, 06:58 PM
  4. 404 on checkout_success.php
    By steveo in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 10-08-2004, 08:35 AM
  5. setup checkout_success
    By navid in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 06-30-2004, 03:33 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •