Keep products in ezbasket after login?

Author Message

Nicklas Lundgren

Thursday 10 September 2009 11:41:46 am

Hi,

I am creating a webshop, and have a problem with the basket contents.

It will be possible to put products into the basket, without being logged in to the site.

When checking out, the user should have two options:

a) Log in to his account and use account information for the checkout process (like name, address etc.)

b) Checkout without logging in to the system, thus needing to fill in all fields manually in the checkout form.

My problem is that the basket is connected via a session_id to the anonymous users session. Thus, when the user is logging in, all products in the basket disappears.

I guess I need to transfer the products in the basket for the anonymous user to the one for the logged in user...

So basically I wonder if this has been done? Any suggestions?

Best regards,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

André R.

Thursday 10 September 2009 1:12:39 pm

Hi!

My guess is that your using 4.1.x?
If so then this is known issue and has been fixed in svn(4.1.4), issue and patch(use the second one) can be found here:
http://issues.ez.no/IssueView.php?Id=14937&activeItem=5

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Nicklas Lundgren

Thursday 10 September 2009 1:30:13 pm

Thanks, André, for quick and helpful reply!

Yes, I am using 4.1.3. I didnt realize that this was a bug, but I am sure the solution you refer to will be very helpful.

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

Nicklas Lundgren

Friday 11 September 2009 6:41:04 am

I have now applied the patch, and it is working perfectly. Great, André!

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

André R.

Friday 11 September 2009 7:14:34 am

Nop ;)

And yes it was/is a bug.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.