darryldecode / laravelshoppingcart

Shopping Cart Implementation for Laravel Framework
1.33k stars 435 forks source link

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

Open Braunson opened 7 years ago

Braunson commented 7 years ago

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 commented 7 years ago

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!