Merge pull request #6233 from jitendra-webkul/master

Guest cart session is not getting removed after last item deletion
This commit is contained in:
Jitendra Singh 2022-04-05 15:10:43 +05:30 committed by GitHub
commit 464c66b988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ class Cart
if ($cartItem = $cart->items()->find($itemId)) {
$cartItem->delete();
if ($cart->items->count() == 0) {
if ($cart->items()->get()->count() == 0) {
$this->cartRepository->delete($cart->id);
if (session()->has('cart')) {