close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

After good order, not showing Success page

Thread began 12/07/2009 10:33 am by terry164844 | Last modified 12/08/2009 9:57 am by terry164844 | 849 views | 1 replies

terry164844

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

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