Merge pull request #3823 from devansh-webkul/redirect_and_notification_issue
Fixed "error!options are missing alert" on home page shouldn't be shown #3231
This commit is contained in:
commit
6a7269b888
|
|
@ -87,7 +87,7 @@ class CartController extends Controller
|
|||
}
|
||||
}
|
||||
} catch(\Exception $e) {
|
||||
session()->flash('error', __($e->getMessage()));
|
||||
session()->flash('warning', __($e->getMessage()));
|
||||
|
||||
$product = $this->productRepository->find($id);
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"/js/velocity.js": "/js/velocity.js?id=f02a5786e854ee22a4bb",
|
||||
"/js/velocity.js": "/js/velocity.js?id=8c4cd9ff0df9008aed99",
|
||||
"/css/velocity-admin.css": "/css/velocity-admin.css?id=612d35e452446366eef7",
|
||||
"/css/velocity.css": "/css/velocity.css?id=72cf9eb7824c25e1dad8"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,6 +92,9 @@ class CartController extends Controller
|
|||
}
|
||||
}
|
||||
} catch(\Exception $exception) {
|
||||
|
||||
session()->flash('warning', __($exception->getMessage()));
|
||||
|
||||
$product = $this->productRepository->find($id);
|
||||
|
||||
Log::error('Velocity CartController: ' . $exception->getMessage(),
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@
|
|||
window.location.reload();
|
||||
}
|
||||
} else {
|
||||
window.showAlert(`alert-warning`, response.data.label ? response.data.label : this.__('shop.general.alert.warning'), response.data.message);
|
||||
|
||||
if (response.data.redirectionRoute) {
|
||||
window.location.href = response.data.redirectionRoute;
|
||||
|
|
|
|||
Loading…
Reference in New Issue