You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unregistered user's items of shopping cart are not merged into new shopping cart of justlogged in customer.
What is happening
I am using Shopsys 7.0.0.beta1
As an unregistered user I add few items into my shopping cart
I log in into my account (lets say just registered)
Items from my shopping cart are gone
--
4) After logging out they are back again
--
Hint: CartMigrationFacade ->mergeCurrentCartWithCart is triggered only after logout. It is not triggered after login (i am using LoginService->loginUser() method)
The text was updated successfully, but these errors were encountered:
We discussed this on Slack with @dzarda86, there is a problem that user's session ID is not changed after login, therefore the condition $previousCartIdentifier !== $session->getId() in CartMigrationFacade does not pass, hence the cart is not migrated. The solution might be migrating session using $request->getSession()->migrate() in LoginService::loginUser().
dzarda86
added a commit
to dzarda86/shopsys
that referenced
this issue
Nov 29, 2018
Unregistered user's items of shopping cart are not merged into new shopping cart of justlogged in customer.
What is happening
I am using Shopsys 7.0.0.beta1
--
4) After logging out they are back again
--
Hint: CartMigrationFacade ->mergeCurrentCartWithCart is triggered only after logout. It is not triggered after login (i am using LoginService->loginUser() method)
The text was updated successfully, but these errors were encountered: