Quick Add to cart can cause item to disappear from the list

Created on 4 September 2024, 4 months ago
Updated 7 September 2024, 4 months ago

Problem/Motivation

When I try to click add to cart very fast like add item A then, B immediately.. Many time, item A will not really add to cart. If it's just that, it would be ok. But I found out later that item A is there in the cart. The Order activity log shows that item A is added but not show up in the list of item added in the cart. Here is what I found in database:

- disappeared item A is there in commerce_order_item table
- commerce_order__order_items don't have that disappeared item A.

Steps to reproduce

Click "add to cart" very quickly.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @abx
  • Status changed to Closed: works as designed 4 months ago
  • In my case, I just found that I have some ECA model that cause this problem. So, it's not problem with Commerce Core or any Ajax cart modules.

Production build 0.71.5 2024