Ticket line items in cart not merged with cart when user logs in
Describe the bug
If I add a ticket to my cart as a guest user, when I then log in, my cart is empty.
When doing the same with just a normal Commerce product in the cart, the line item carries over to the logged in user's cart.
When logging in with a ticket and a normal Commerce product in the cart, my cart becomes empty.
Steps to reproduce
- Add a ticket to your cart as a guest user
- Log in as an existing user
- Check cart on front-end
Craft CMS version
4.6.1
Plugin version
dev-craft-4
Multi-site?
Yes
Additional context
No response
Looks like you're right, although the cart combining is all handled by Commerce (specifically this). We have no login handling on our end that might override anything Commerce-wise.
While I was able to replicate this once, after subsequent testing, it looks like line items are actually copying over now, so this issue may be sporadic - somehow. I was also combining checking the cart content from the control panel.
This is happening consistently for us and haven't managed to get a ticket line item to copy over. The presence of a ticket line item also stops other line items from copying over.
Still trying to figure out what's going on here, stay tuned.
I believe this should be fixed in Commerce 5 and Events 3.