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

Cart::remove returns true but never removes item #88

Open
Braunson opened this issue Apr 29, 2017 · 1 comment
Open

Cart::remove returns true but never removes item #88

Braunson opened this issue Apr 29, 2017 · 1 comment

Comments

@Braunson
Copy link

Braunson commented Apr 29, 2017

Running 3.0 on Laravel 5.4, adding works fine, but when I try to remove an item by ID from the cart, it returns true but still is in the cart!

Update: Since I'm making ajax calls to add items, show the cart list, and remove items, there may be a session issue where one call is being called in parallel to another and overwriting the session. Here's the Laravel thread, which describes this issue: laravel/framework#5416

@darryldecode
Copy link
Owner

Hi, i don't see this problem. I made a quick demo as an attempt to replicate your issue but it works just fine.
Im using laravel 5.4~ and shoppingcart 3.0~

here is the demo: http://phpstack-86254-257005.cloudwaysapps.com/cart
here is the git repo of the demo: https://github.com/darryldecode/laravelshoppingcart-demo

thanks!

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

2 participants