osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Continue button not working in Checkout success.php

This is a discussion on Continue button not working in Checkout success.php within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Hi Just wondering if anyone can offer any advice - I have started testing my site to get it ready ...

      
  1. #1
    New Member
    Join Date
    Sep 2004
    Posts
    12
    Rep Power
    0


    Default Continue button not working in Checkout success.php

    Hi
    Just wondering if anyone can offer any advice - I have started testing my site to get it ready to go live and have realised that somewhere along the line, the continue button on checkout_success.php now just goes to an HTTP404 error (page not found). Everything else seems to work fine - the order goes through, the customer recieves an email but wherever the link is meant to go, it can't find it. I have installed quite a few mods into this site which creates a nightmare in finding what caused it. But none of the mods actually change anything in this page.

    Can anyone suggest why this is happening and where I should look for errors. I have replaced the checkout_success.php page with the orginal and compared the two aswell.

    Any advice would be appreciated!
    Thanks

  2. #2
    webwolfe
    Guest


    Default Same problem continue button

    I am having the same problem. When I hit the continue button link at the bottom of checkout_success.php page I get “The page cannot be found” because it’s looking for my secure page and not switching back to regular URL. All the other buttons on the page switch out of the secure mode and back to regular mode. When I check my error log I get nothing. I know my configures are correct because the order is completed. I am using the osC templates.
    Jacob

  3. #3
    Member
    Join Date
    Jan 2004
    Location
    edmonton, Alberta, Canada
    Posts
    62
    Rep Power
    0


    Default Re: Same problem continue button

    Quote Originally Posted by webwolfe
    I am having the same problem. When I hit the continue button link at the bottom of checkout_success.php page I get “The page cannot be found” because it’s looking for my secure page and not switching back to regular URL. All the other buttons on the page switch out of the secure mode and back to regular mode. When I check my error log I get nothing. I know my configures are correct because the order is completed. I am using the osC templates.
    Jacob
    post the code from checkout_success.php and ill take a peak.

  4. #4
    webwolfe
    Guest


    Default RE: Re: Same problem continue button

    Quote Originally Posted by peteyg
    Quote Originally Posted by webwolfe
    I am having the same problem. When I hit the continue button link at the bottom of checkout_success.php page I get “The page cannot be found” because it’s looking for my secure page and not switching back to regular URL. All the other buttons on the page switch out of the secure mode and back to regular mode. When I check my error log I get nothing. I know my configures are correct because the order is completed. I am using the osC templates.
    Jacob
    post the code from checkout_success.php and ill take a peak.
    Here is the code from the checkout_success.php.
    "require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS);

    $breadcrumb->add(NAVBAR_TITLE_1);
    $breadcrumb->add(NAVBAR_TITLE_2);

    $global_query = tep_db_query("select global_product_notifications from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "'");
    $global = tep_db_fetch_array($global_query);

    if ($global['global_product_notifications'] != '1') {
    $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where customers_id = '" . (int)$customer_id . "' order by date_purchased desc limit 1");
    $orders = tep_db_fetch_array($orders_query);

    $products_array = array();
    $products_query = tep_db_query("select products_id, products_name from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . (int)$orders['orders_id'] . "' order by products_name");
    while ($products = tep_db_fetch_array($products_query)) {
    $products_array[] = array('id' => $products['products_id'],
    'text' => $products['products_name']);
    }
    }

    $content = CONTENT_CHECKOUT_SUCCESS;

    require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PAGE);

    require(DIR_WS_INCLUDES . 'application_bottom.php');
    ?>"

    And then the code from the lang eng:
    "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\'');
    ?>"
    Thanks.
    Jacob

  5. #5
    Member
    Join Date
    Jan 2004
    Location
    edmonton, Alberta, Canada
    Posts
    62
    Rep Power
    0


    Default RE: Re: Same problem continue button

    Seems to me your missing some code with the essential if statements that tell this page what to do.
    here it is place it above the line " require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_SUCCESS); "
    require('includes/application_top.php');

    // if the customer is not logged on, redirect them to the shopping cart page
    if (!tep_session_is_registered('customer_id')) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART) );
    }

    if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) {
    $notify_string = 'action=notify&';
    $notify = $HTTP_POST_VARS['notify'];
    if (!is_array($notify)) $notify = array($notify);
    for ($i=0, $n=sizeof($notify); $i<$n; $i++) {
    $notify_string .= 'notify[]=' . $notify[$i] . '&';
    }
    if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);

    tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
    }

  6. #6
    New Member
    Join Date
    Sep 2004
    Posts
    12
    Rep Power
    0


    Default

    Hi, just thought I would let you all know that I discovered my problem with the checkout button was that somehow I had removed the index.php from the HTTPS side! Not sure how I did it but I was glad to discover it was something simple to fix! I was so sure something went wrong in the code!!

  7. #7
    Member
    Join Date
    Jan 2004
    Location
    edmonton, Alberta, Canada
    Posts
    62
    Rep Power
    0


    Default

    well then thats a relief!

  8. #8
    webwolfe
    Guest


    Default Where on the https do you put the index.php?

    I am still having the problem and I can't figure out where on the https side you put the index.php. Will someone help with this answer!?
    Thanks
    Jacob
    mailto:”webmaster@stock-information.com”

  9. #9
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default RE: Where on the https do you put the index.php?

    If your https is NOT mapped to your http folder then COPY ALL FILES from the http to your https folder (including images etc...).

    Other than that - ask your host provider for help.
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  10. #10
    webwolfe
    Guest


    Default RE: Where on the https do you put the index.php?

    Quote Originally Posted by jpf
    If your https is NOT mapped to your http folder then COPY ALL FILES from the http to your https folder (including images etc...).

    Other than that - ask your host provider for help.
    Everything is mapped just fine. Oakhill said "somehow I had removed the index.php from the HTTPS side!". Where is it!
    Thanks

Page 1 of 2 12 LastLast

Similar Threads

  1. Change the link on "Continue" button on checkout_s
    By chrisrex in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-22-2005, 05:10 PM
  2. Problem with Checkout success page loading.
    By markymrk22 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 07-17-2005, 10:44 AM
  3. Checkout Success white screen problem
    By Dutchman in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 01-05-2005, 07:19 PM
  4. "Continue" button links to different page.Strange.
    By yellowriver in forum osCommerce 2.2 Modification Help
    Replies: 7
    Last Post: 11-03-2004, 11:49 AM
  5. Changing Checkout Success Email Content
    By midwestwebsites in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 10-08-2003, 07:16 AM

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
  •