You would need to add something like the following. You may need to add .alert-success to the selector if you only want to close success messages.
Code: Select all
setInterval(function() {
$('.alert-dismissible').alert('close');
}, 5000);
Thanks for the help. Actually ended up using this and it seems to work for successful alert, but not for Warning alerts even though they both use .alert class
Code: Select all
setTimeout(function(){
$('.alert').fadeOut()
}, 2000);
Last edited by supak111 on Thu May 23, 2024 10:10 am, edited 1 time in total.
~ OC 3.0.3.2 and OCmods only ~
Now that the issue has been solved, please add: [SOLVED] at the beginning of the subject line on your first post.supak111 wrote: ↑Thu May 23, 2024 12:37 amThanks for the help. Actually ended up using this and it seems to work for successful alert, but not for Warrning alerts even though they both use .alert class
Code: Select all
setTimeout(function(){ $('.alert').fadeOut() }, 2000);
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
What's the code you used for warning alerts?
Have you tried with: alert alert-warning ?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: Amazon [Bot], Semrush [Bot] and 76 guests