Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajax Cart API response item_count bug on cart/change request #3624

Open
zachmdev opened this issue Sep 24, 2024 · 0 comments
Open

Ajax Cart API response item_count bug on cart/change request #3624

zachmdev opened this issue Sep 24, 2024 · 0 comments

Comments

@zachmdev
Copy link

Describe the current behavior

With a bundle product in the cart, if we change its quantity, or another product's quantity, or simply remove a product from the cart, the response we get from the Ajax Cart API has the wrong item_count value. If you compare item_count and items on the screenshot, it doesn't match.

Describe the expected behavior

The bundle product should count as one product and not as the sum of the products it is composed by.

Version information (Dawn, browsers and operating systems)

  • Dawn Version: 15.1.0
  • Chrome Version 128.0.6613.138
  • macOS Version 14.6.1

Possible solution

We might "bypass" this using the Section rendering API to render the cart.item_count instead of rendering it with Javascript, but this should be fixed anyway.

Additional context/screenshots

This issue is related to that one: #2994 (comment)

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant