magento2: Summary Count is Wrong Add Multiple Items to Cart using addProductsToCart

Preconditions (*)

  1. Magento 2.4.2 Commerce
  2. PHP 7.4

Steps to reproduce (*)

  1. Add Multiple Items to Cart Using Graphql
mutation {
  addProductsToCart(
    cartId: "XRu4kdwSkA2Hi40PwO4jwkhZxa0bu5zA",
    cartItems: [
      {
      	quantity: 1.0,
        sku: "132110100209"
    	},
      {
        quantity: 1.0, 
        sku: "132110100210",
      }
    ]
  ) {
    cart {
      total_quantity
      items {
        product {
          name
          sku
        }
        quantity
      }
    }
  }
}
  1. Check Cart data in Cart Section [Local Storage]

Expected result (*)

  1. summary_count Should be 2
  2. Items Must Contain 2 Items

Actual result (*)

  1. summary_count is 1
  2. There are 2 Items in Cart Screenshot from 2021-09-29 18-48-04

Additional Info:

Issue: Only one item summary is displayed in Cart Icon - Summary image image

Note: Due to the above is : If we noticed that even the price is calculating wrong


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [* ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (5 by maintainers)

Most upvoted comments

Verified the issue again on latest magento version 2.4-develop branch but cannot able to reproduce the issue anymore. Hence closing the issue. :