flash waring message added

This commit is contained in:
sanjeev 2022-07-06 16:23:45 +05:30
parent 009db6fb1f
commit add970dfbc
1 changed files with 4 additions and 2 deletions

View File

@ -69,9 +69,11 @@ 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,
'product_id' => $itemId,