Merge pull request #2347 from jitendra-webkul/1.0

Issue #2335 fixed
This commit is contained in:
Jitendra Singh 2020-02-06 19:22:18 +05:30 committed by GitHub
commit 4568703be2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ namespace Webkul\Shop\Http\Controllers;
use Webkul\Customer\Repositories\WishlistRepository;
use Webkul\Product\Repositories\ProductRepository;
use Webkul\Checkout\Contracts\Cart as CartModel;
use Cart;
/**
@ -78,7 +79,7 @@ class CartController extends Controller
return redirect()->back();
}
if ($result instanceof Cart) {
if ($result instanceof CartModel) {
session()->flash('success', trans('shop::app.checkout.cart.item.success'));
if ($customer = auth()->guard('customer')->user())