First, on the confirm page, find the following:
<?php
// WA eCart Redirect
if ($WA_Store_Cart->redirStr != "") {
header("Location: ".$WA_Store_Cart->redirStr);
}
?>
and change it to:
<?php
// WA eCart Redirect
$WA_Store_Cart->GetContent();
if ($WA_Store_Cart->redirStr != "") {
session_commit();
header("Location: ".$WA_Store_Cart->redirStr);
}
?>
If you are still having the same problem, we need to determine what code is directing to the cart page. find the following two lines on the cehckout_sucess.php page:
header("Location: cart.php");
$WA_Store_Cart->redirStr = "cart.php";
and change them to:
header("Location: cart.php?qty=1");
$WA_Store_Cart->redirStr = "cart.php?empty=1";
on the checkout success page, find
$WA_Store_Cart->redirStr = "cart.php";
and change it to:
$WA_Store_Cart->redirStr = "cart.php?oid=1";
this is adding querystring variables to the code that directs to the cart page that we can use to find out why the redirect is happening. when you get to the cart page, make a note of which querystring variable is added and post back.