Describe the bug
When deleting the only item in the cart, the response now returns undefined array key on specific cart session data due to a change made in WooCommerce v10 that now clears the cart session directly rather than just clearing the cart.
Prerequisites
Steps to reproduce the issue
- Add item to cart
- Get cart
- Remove item from cart
Expected/actual behavior
When I follow those steps, I see the errors returned at the top of the cart response.
I was expecting to see just the cart response.
Screenshots
Isolating the problem
WordPress Environment
Details
```
Go to "WooCommerce > System Status then copy and paste the system status report here.
```
Additional context
This bug was first reported in the CoCart Discord Community. https://discord.com/channels/862091299049177148/1395899954316447744
Unclear yet if this change in WooCommerce affects being able to restore items to the cart.
Describe the bug
When deleting the only item in the cart, the response now returns undefined array key on specific cart session data due to a change made in WooCommerce v10 that now clears the cart session directly rather than just clearing the cart.
Prerequisites
trunkbranch of CoCart on GitHub.developmentbranch of CoCart on GitHub (this is not the same version as on WordPress.org!).Steps to reproduce the issue
Expected/actual behavior
When I follow those steps, I see the errors returned at the top of the cart response.
I was expecting to see just the cart response.
Screenshots
Isolating the problem
WordPress Environment
Details
``` Go to "WooCommerce > System Status then copy and paste the system status report here. ```Additional context
This bug was first reported in the CoCart Discord Community. https://discord.com/channels/862091299049177148/1395899954316447744