Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checkout_process


steveluk

Recommended Posts

I'm slowly recovering my website based on osCommerce 2.2-MS2. Here's a problem I have to deal with currently:

When the customer enters the payment info and clicks the 'Confirm Order' button the site just shows a blank screen at checkout_process.php and sits there. The order has been processed because the confirmation email was sent and the order can be found in the database.

I confirmed that the file checkout_process.php is exactly the same as the original working one so I don't know how to troubleshoot in this case. Any suggestions?

Link to comment
Share on other sites

If you have an errorlog file provided by the host check it.

 

If not you could read the posts by steve_s starting here about getting the site to make a log file.

 

That thread is about errors in the admin but you can do the same thing in the catalog.

 

Without an error message of some type you don't have a clue where to look.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

There's no error in the error_log file. And I can even include a line in the code that indicates the completion of the order in checkout_process.php:

 

tep_session_unregister('sendto');

tep_session_unregister('billto');

tep_session_unregister('shipping');

tep_session_unregister('payment');

 

tep_session_register('last_order');

$last_order = $insert_id;

?> Your Order has been processed. <?php //Added by myself

 

The screen just displays my line and nothing else. I'd like to successfully go to checkput_success.php from there.

Link to comment
Share on other sites

I'm pretty sure the problem lies in this line:

tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'order_id='. $insert_id, 'SSL'));

 

I don't know whether getting a new ssl certificate from VeriSign has anything to do with this but it just can't get redirected to checkout_success.php.

I even tried this instead:

$link = tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'order_id='. $insert_id, 'SSL');

header ("Location: ".$link);

 

And it still won't work.

$link is 'https://www.mysite.com/checkout_success.php?order_id=73171'.

Link to comment
Share on other sites

My file looks like this at the end:

 

// unregister session variables used during checkout
 tep_session_unregister('sendto');
 tep_session_unregister('billto');
 tep_session_unregister('shipping');
 tep_session_unregister('payment');
 tep_session_unregister('comments');

 tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

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

 

Tim

Link to comment
Share on other sites

Same thing here! But checkout_success.php never comes up!

 

My file looks like this at the end:

 

// unregister session variables used during checkout
 tep_session_unregister('sendto');
 tep_session_unregister('billto');
 tep_session_unregister('shipping');
 tep_session_unregister('payment');
 tep_session_unregister('comments');

 tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));

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

 

Tim

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...