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

Variant products added to cart #415

Closed
etoler1841 opened this issue Dec 24, 2020 · 2 comments
Closed

Variant products added to cart #415

etoler1841 opened this issue Dec 24, 2020 · 2 comments
Labels
awaiting author response Awaiting response from Issue/PR author

Comments

@etoler1841
Copy link

Describe the bug
When a product variant is added to the cart, all other products in the cart are removed. When a variant is already in the cart, adding any other product removes the variant.

To Reproduce

  1. Add a simple product to the cart.
  2. Add a product variant to the cart. The simple product will disappear.
  3. Add any number of simple products to the cart. The variable product will disappear, but all simple products will exist.

Note: This error does not occur if using GraphiQL from the WordPress dashboard. Instead, send the queries from a client application, Postman, or some other external source.

Expected behavior
All products should be added to the cart without affecting other products.

Desktop:

  • OS: Windows
  • Browser: Firefox
  • Version: 83.0

Additional context
This issue doesn't happen when using the built-in GraphiQL interface. However, this may be because, since it's embedded in WordPress, vanilla WooCommerce is able to manage the cart directly and it overwrites whatever error is occurring when using GraphQL externally.

@kidunot89
Copy link
Member

@etoler1841 Are you using the woocommerce-session token. See here 👉 #88

@kidunot89 kidunot89 added the awaiting author response Awaiting response from Issue/PR author label Oct 21, 2021
@kidunot89
Copy link
Member

@etoler1841 Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting author response Awaiting response from Issue/PR author
Projects
None yet
Development

No branches or pull requests

2 participants