How to reproduce:

Vanilla install of Drupal (either 5.8 or 5.9)
Create administrator account (admin)

As the administrator:

Turn on clean paths
Unpack eCommerce 3.4 and Token 1.11 into sites/all/modules
Turn on the following modules:
1. step: Store + Anonymous Purchasing + Token (and say yes to all other modules it asks for)
2. step: Tanglible product
Go to eCommerce Configuration -> Store and set Pruchase policy to "Registered only"
Go to Create Content -> Product -> Tangible product and create a single product (just title, body and price)
Log out

As an anonymous user:

Click on Products -> [The only product we have created] -> Add to cart -> Your shopping cart
Click on Checkout -> register & complete the registration process
Fill in the Username and Password and Log in

Here comes the bug (the difference between Drupal 5.8 and 5.9):

In Drupal 5.8:

A confirmation page with the e-mail address and the product is displayed.

In Drupal 5.9:

The following message is displayed:
"Your shopping cart is empty. You may continue shopping from our Product page."

Comments

stevecowie’s picture

I encountered this problem and a look at the release notes for 5.9 suggested this might be a user issue. The patch to user.module regenerates the session variable differently and I think that the session variable is used by ec_cart. To test this I published user.module form Drupal 5.7 to the problem site, and the problem was rectified.

I then updated the site to v5.10 and the problem is fixed.

damien tournoud’s picture

Project: Drupal core » e-Commerce
Version: 5.9 » 5.x-3.x-dev
Component: base system » cart

What about affecting this to the good project?

mfb’s picture

Status: Active » Closed (duplicate)

This should be the same issue as #287373: Drupal 5.9: Cart lost when Logging in due to regenerated session id (which has been fixed in CVS).