-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Current behavior
Clicking the "Clear cart" button only clears the cart in the client, not on the backend server. After reloading the page the previous cart contents reappear. Other problems can occur because of this, like quantities multiplying in the cart.
The Microcart clearCart method calls the cart/clear action, which deletes the server token. When cart/sync is called next, the server cart can't be synchronized.
Expected behavior
Clearing the cart should result in an empty cart on the server.
Steps to reproduce the issue
Repository
- Log in and add an item to the cart
- Open Microcart and click "Clear cart"
- Reload the page
- The product is in the cart again
Can you handle fixing this bug by yourself?
- YES
- NO
Which Release Cycle state this refers to? Info for developer.
Pick one option.
- This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from
developbranch and create Pull Request2. Feature / Improvementback todevelop. - This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from
releasebranch and create Pull Request3. Stabilisation fixback torelease. - This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from
hotfixormasterbranch and create Pull Request4. Hotfixback tohotfix.
Environment details
- Browser:
- OS:
- Node:
- Code Version: v1.11.1
Additional information
New in v1.11.1