osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-08-2005, 03:25 PM
New Member
 
Join Date: Sep 2004
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
oakhill
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 07-16-2005, 05:14 AM
webwolfe
Guest
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-16-2005, 09:08 PM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-17-2005, 03:31 AM
webwolfe
Guest
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 07-17-2005, 10:09 PM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
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); "
Quote:
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));
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 07-18-2005, 12:41 AM
New Member
 
Join Date: Sep 2004
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
oakhill
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!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 07-18-2005, 09:05 PM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
Default

well then thats a relief!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 07-20-2005, 07:29 AM
webwolfe
Guest
 
Posts: n/a
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”
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 07-20-2005, 07:32 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
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
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 07-20-2005, 07:47 AM
webwolfe
Guest
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 11:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax