close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

OrderID not Unique

Thread began 9/17/2012 1:35 pm by Justin@AdventDesign | Last modified 9/18/2012 6:16 am by Justin@AdventDesign | 1077 views | 4 replies |

Justin@AdventDesign

OrderID not Unique

Putting a checkout system through its paces, and I noticed if I place more than one order in the same session, the order replaces the previous one using the same OrderID. If I place an order, logout, and log back in, it operates correctly using a new OrderID rather than the previous one.

Not sure where the problem is, can anyone offer a troubleshooting path?

Sign in to reply to this post

Jason ByrnesWebAssist

on the success page, you should unset the order ID session variable.

look at the code to display the order ID on the success page.

This should be using a session variable, add code at the end of the success page to unset that session variable

Sign in to reply to this post

Justin@AdventDesign

On my confirm.php page I'm finding this:

$WA_sessionName = "eCartMGP_OrderID";

So I'm guessing the "eCartMGP_OrderID" is what I need to unset. Am I supposed to use the "Clear Session Values" function? When I do, I see a UserID, but no OrderID. Any help would be appreciated. This is the only thing holding up the cart from going live! Here's the only code on the checkout_success.php page:

<?php
//WA eCart Include
require_once("WA_eCart/eCartMGP_PHP.php");
?>
<?php require_once( "webassist/security_assist/helper_php.php" );
?>
<?php
// WA eCart Trigger Clear Cart
if ("" == "") {
$eCartMGP->ClearCart();
$Redirect_redirStr="";
if ($Redirect_redirStr != "") {
$eCartMGP->redirStr = $Redirect_redirStr;
}
$eCartMGP->cartAction = "ClearCart";
}
?>
<?php
$eCartMGP->GetContent();
?>

Sign in to reply to this post

Jason ByrnesWebAssist

use the following code at the end of the success page:

php:
<?php if(isset($_SESSION['eCartMGP_OrderID'])) unset($_SESSION['eCartMGP_OrderID']); ?>
Sign in to reply to this post

Justin@AdventDesign

That did it. Thanks!

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