After good order, not showing Success page
After placing an order I'm not taken to the success page. I'm taking back to the confirm page.
I know the order is a success for the following reasons.
1.) I see the transaction in the merchant account as processed.
2.) I get the confirmation email with a good order #.
3.) I echo two things out just after the email routine in the confirm page:
a: the customers email:
b: the value of the redirect string $WA_Store_Cart->redirStr
The email is correct. The string for $WA_Store_Cart->redirStr shows the correct success page.
So, what should have happened next (after the echo) was being redirected to the success page. Instead, I'm taking right back to the checkout confirm page.
Also, the $WA_redirectURL = ""; in both the header and detail parts of the code where it adds to the db.
Is it because of the line after the //Send Mail to All Entries that doesn't have any Location?
//Send Mail All Entries
if (""!="") {
header("Location: ");
}
See code below:
/code/
<?php
if ((isset($_POST["Submit_order"]))) {
//WA Universal Email object="mail"
//Send Loop Once Per Entry
$RecipientEmail = "".((isset($_POST["email"]))?$_POST["email"]:"") ."";include("WA_Universal_Email/WAUE_confirm_1.php");
echo "Got here - after setting $RecipientEmail " . $WA_Store_Cart->redirStr;
//Send Mail All Entries
if (""!="") {
header("Location: ");
}
}
?>
<?php
if ($WA_Store_Cart->IsEmpty()) {
$WA_Store_Cart->redirStr = "soleus-cart2.php";
$WA_Store_Cart->cartAction = "RedirectIfEmpty";
}
?><?php
// WA eCart Redirect
if ($WA_Store_Cart->redirStr != "") {
header("Location: ".$WA_Store_Cart->redirStr);
}
?>
/code/
Terry