close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Bugs with cart process: CustomerID occasionally missing and redirect failure

Thread began 12/27/2010 11:37 pm by SaladoGuy | Last modified 12/28/2010 5:18 pm by SaladoGuy | 899 views | 2 replies

Ray BorduinWebAssist

I see on your page:

$WAGatewayResponse = AuthNet_Post($AuthNet_required,$AuthNet_itemized,$AuthNet_optional);
if ($WAGatewayResponse) {
$eCart1->redirStr = "checkout_success.php";
// else if ("checkout_failure.php" != "") {
else if ("checkout_success.php" != "") {
header("Location: ". "checkout_success.php");

this should probably read:

$WAGatewayResponse = AuthNet_Post($AuthNet_required,$AuthNet_itemized,$AuthNet_optional);
if ($WAGatewayResponse) {
$eCart1->redirStr = "checkout_success.php";
else if ("checkout_failure.php" != "") {
header("Location: ". "checkout_failure.php");

It looks like someone has manually updated the code to make it always redirect to the success page even when it fails.

You can probably reproduce it by entering a bad credit card number like: 4111111111111111

it will happen if the transaction fails for any reason.

You'll also want to move the code:

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

below the email... it should be immediately above the DOCTYPE tag to give the email receipt time to send.

In terms of the customerID it looks like in the orders table you are using:


and in the orderdetails you are using:


you can probably just correct that on line 430

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





Ease of use


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