wishlist api fixed

This commit is contained in:
asif-webkul 2019-10-24 17:43:28 +05:30
parent def20776dc
commit 5d66f85a20
1 changed files with 2 additions and 1 deletions

View File

@ -109,8 +109,9 @@ class CartController extends Controller
], 400);
}
if ($customer = auth()->guard('customer')->user())
$this->wishlistRepository->deleteWhere(['product_id' => $id]);
Event::fire('checkout.cart.item.add.after', $result);
Cart::collectTotals();