close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Checkout does not continue past confirm.php

Thread began 10/13/2010 11:15 am by SaladoGuy | Last modified 10/13/2010 4:26 pm by Dani Chankhour | 1177 views | 7 replies |

SaladoGuyBeta Tester

Checkout does not continue past confirm.php

I had a cart working (or maybe it was almost working) with authorize.net. I went to test it today and realized that it does not proceed to the final pages (checkout_success.php or checkout_failure.php)

Everything else seems to be working: the confirmation email is received from both eCart and authorize.net, and the order and order details entries are posted correctly.

So it seems that everything is working except that it's not proceeding to the checkout_confirm.php page.

Can you please look at the code and let me know what's wrong with it?

I'm attaching a zip file with (I hope) everything we need.

Thanks.

Sign in to reply to this post

SaladoGuyBeta Tester

Zip attached here.

Attached Files
ecart_example.zip
Sign in to reply to this post

SaladoGuyBeta Tester

I removed the authnet keys from the code (for obvious reasons)

Sign in to reply to this post

Dani Chankhour

is the order being stored correctly in your database and is the transaction showing under Authorize.net?

Sign in to reply to this post

SaladoGuyBeta Tester

Yes, order is being stored correctly in the database ("... the order and order details entries are posted correctly ...").

Re: "is the transaction showing under Authorize.net"
Authorize.net is in test mode:

"ACCOUNT IS IN TEST MODE - REAL TRANSACTIONS WILL NOT BE PROCESSED"

I do not have any way to know or prove that they are reaching authorize.net correctly (it does not seem to store "test" transactions) however I believe it is working correctly since (as I mentioned before) we are getting a valid test confirmation email FROM authorize.net with all the corect information. So apparently that means authorize.net is receiving everything from our shopping cart that it is supposed to be receiving.

If you can give me instructions on how to provide you with better information than that, please do. All this is new to me.

In the mean time - we're stil anxiously waiting your report on what might be wrong with the current page. We suspect it must be a problem with the confirm.php page but we don't know for sure.

Sign in to reply to this post

Dani Chankhour

You are correct, looking at the confirm page and comparing it to my confirm page, it looks like it is missing the redirect call.

At the end of line 584, please add these lines of code:

<?php
// WA eCart Redirect
if ($eCart1->redirStr != "") {
header("Location: ".$eCart1->redirStr);
}
?>

so you should have:

<?php
if ($eCart1->IsEmpty()) {
$eCart1->redirStr = "viewcart.php";
$eCart1->cartAction = "RedirectIfEmpty";
}
?>
<?php
// WA eCart Redirect
if ($eCart1->redirStr != "") {
header("Location: ".$eCart1->redirStr);
}
?>

Sign in to reply to this post

SaladoGuyBeta Tester

That fixed it, thank you.

Sign in to reply to this post

Dani Chankhour

I'm glad i was able to help.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...