close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problem with orders en orderdetails

Thread began 5/10/2010 11:56 am by fidelis331565 | Last modified 5/11/2010 1:24 pm by Dani Chankhour | 1013 views | 4 replies |

fidelis331565

Problem with orders en orderdetails

I created a shop in ecart5, it works fine, I thought. I must do something wrong, because when I tested the shop by buying a product and made the payment, it works well. Then I login again and want to buy the same product, the old order and orderdetail will be rewritten in the database. Instead of 2 orders there is only one. The orderdetail get a new ID and the old is deleted. All data is updated. The order ID stays the same. I put the shop behind an inlog. I tried everything last 2 days, In the cart I changed in the bindings; ignore, add new, and replace. Checked the DB, checked in confirm the order en orderdetails. I just bought ecart5, 1 week, please help.

Sign in to reply to this post

Dani Chankhour

Try clearing your cart on the success page by clearing out the session. It looks like the old transaction id is being used for the new transaction.

Sign in to reply to this post

fidelis331565

Tried with success page, but order will be re-written

I tried but it does not work, I changed the redirect straight to the success page (No paypal) and still the order and orderdetails are re-written. I still think I do something wrong, I will create a new shop, maybe then it will work.

Sign in to reply to this post

fidelis331565

It´s working, but...

Problem is solved, the session is ended, but also the login session. I have read some treads about this, but the code I used does not keep the userID session alive:

Code:
<?php

// Initialize the session.
// If you are using session_name("something"), don't forget it now!
session_start();


//store the user session
$userSession = $_SESSION['UserID'];



// Unset all of the session variables.
$_SESSION = array();

// If it's desired to kill the session, also delete the session cookie.
// Note: This will destroy the session, and not just the session data!
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
setcookie(session_name(), '', time() - 42000,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}

// Finally, destroy the session.
session_destroy();
unset($_SESSION);
session_regenerate_id();

//reset user session
$_SESSION['UserID'] =$userSession;
?>

I use Security Assist.

Sign in to reply to this post

Dani Chankhour

I'm glad you were able to resolve the issue and thanks for posting back with the solution.

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