Skip to content

[Bug] Broken cart after placing an order as a guest #247

@Fifciu

Description

@Fifciu

Expected Behavior

After placing an order, cart works correctly.

Actual Behavior

After creating an order (as a guest), if we want to add a new product to the new cart (without refreshing website - F5) - it won't be reactive. Other actions like sign-in in this circumstances will throw an error.

If we refresh a website with F5 - then everything will work fine - added products will be in cart.

Possible Solution

Clear cart token after placing an order.

No response

Steps to reproduce

  1. Place an order as a guest
  2. Without refreshing, go to the product's view and try to add some product - looks like nothing happens
  3. If you try to sign-in, it will throw an error because it cannot mergeCarts (looks like something is wrong with new-cart creation process)
  4. If you refresh with F5, then everything works fine. It is expected to work like that without a need to refresh website.

What version of Magento 2 integration are you using?

The newest develop, commit is ba0f10a

What version of Node.js are you using?

14.17.6

What browser (and version) are you using?

Google Chrome 95.0.4638.69 (Official Build) (64-bit)

What operating system (and version) are you using?

Ubuntu 20.04

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

bugSomething isn't workingvsf_team

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions