flash waring message added
This commit is contained in:
parent
009db6fb1f
commit
add970dfbc
|
|
@ -69,9 +69,11 @@ class WishlistController extends Controller
|
||||||
{
|
{
|
||||||
$product = $this->productRepository->findOneByField('id', $itemId);
|
$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();
|
return redirect()->back();
|
||||||
|
}
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'channel_id' => core()->getCurrentChannel()->id,
|
'channel_id' => core()->getCurrentChannel()->id,
|
||||||
'product_id' => $itemId,
|
'product_id' => $itemId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue