flash waring message added
This commit is contained in:
parent
009db6fb1f
commit
add970dfbc
|
|
@ -69,8 +69,10 @@ class WishlistController extends Controller
|
|||
{
|
||||
$product = $this->productRepository->findOneByField('id', $itemId);
|
||||
|
||||
if ($product == null || ! $product->status)
|
||||
if ($product == null || ! $product->status) {
|
||||
session()->flash('error', trans('customer::app.wishlist.failure'));
|
||||
return redirect()->back();
|
||||
}
|
||||
|
||||
$data = [
|
||||
'channel_id' => core()->getCurrentChannel()->id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue