events icon indicating copy to clipboard operation
events copied to clipboard

Ticket line items in cart not merged with cart when user logs in

Open CharlieGentle opened this issue 2 years ago • 3 comments

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

  1. Add a ticket to your cart as a guest user
  2. Log in as an existing user
  3. Check cart on front-end

Craft CMS version

4.6.1

Plugin version

dev-craft-4

Multi-site?

Yes

Additional context

No response

CharlieGentle avatar Feb 12 '24 13:02 CharlieGentle

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.

engram-design avatar Feb 16 '24 13:02 engram-design

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.

CharlieGentle avatar Feb 19 '24 14:02 CharlieGentle

Still trying to figure out what's going on here, stay tuned.

engram-design avatar Feb 20 '24 04:02 engram-design

I believe this should be fixed in Commerce 5 and Events 3.

engram-design avatar Oct 05 '24 22:10 engram-design