From 1050f4a82c164040d2672e1faafcfee2bd5e69ae Mon Sep 17 00:00:00 2001 From: jitendra Date: Thu, 24 Oct 2019 17:11:33 +0530 Subject: [PATCH] Removed comment from WishlistController --- .../src/Http/Controllers/WishlistController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/Webkul/Customer/src/Http/Controllers/WishlistController.php b/packages/Webkul/Customer/src/Http/Controllers/WishlistController.php index 2e5c82ecb..24790355f 100755 --- a/packages/Webkul/Customer/src/Http/Controllers/WishlistController.php +++ b/packages/Webkul/Customer/src/Http/Controllers/WishlistController.php @@ -158,7 +158,7 @@ class WishlistController extends Controller if (! $wishlistItem) abort(404); - // try { + try { $result = Cart::moveToCart($wishlistItem); if ($result) { @@ -170,11 +170,11 @@ class WishlistController extends Controller } return redirect()->back(); - // } catch (\Exception $e) { - // session()->flash('warning', $e->getMessage()); + } catch (\Exception $e) { + session()->flash('warning', $e->getMessage()); - // return redirect()->route('shop.products.index', ['slug' => $wishlistItem->product->url_key]); - // } + return redirect()->route('shop.products.index', ['slug' => $wishlistItem->product->url_key]); + } } /**