Hello Everyone
I need help. Actually In my template Success Alert Box default set.
My question is when I click on add to cart button that time success alert box appear but there is an option to close icon
But I need that Success box will hide automatically . So how to solve this ? anybody can help
Thanks and help me out.
I need help. Actually In my template Success Alert Box default set.
My question is when I click on add to cart button that time success alert box appear but there is an option to close icon
But I need that Success box will hide automatically . So how to solve this ? anybody can help
Thanks and help me out.
Attachments
Success Alert Box.jpg (11.87 KiB) Viewed 1657 times
you can easily hide the success message popup by using the timer in Javascript. Please check [this answer] on StackOverflow (https://stackoverflow.com/a/61606234/4140878)
Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations
Can you explain where I can set this code.
Last edited by saifcolins on Mon Mar 13, 2023 4:33 pm, edited 2 times in total.
Where I can set this code.TMD Extension @ wrote: ↑Mon Mar 13, 2023 2:37 pmyou can easily hide the success message popup by using the timer in Javascript. Please check [this answer] on StackOverflow (https://stackoverflow.com/a/61606234/4140878)
Actually I already gone like this in my cpanel
catalog>view>javascript>common.js
can you set that code I am attaching that common.js for you and back to me plz.
plz help me out. thanks in advance
Attachments
You have tried to contact theme developer?
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
without knowing what theme or module you are using, it is quite difficult to say where to make changes to make the popup disappear after some time. Please contact us at sale@opencartextensions.in We are ready to help you to get this done. You can pay us for a small cup of coffee.
Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations
Add it to
catalog/view/javascript/common.js
catalog/view/javascript/common.js
Code: Select all
$(document).ready(function() {
setTimeout(function() {
$(".alert").alert('close');
}, 3000);
});
Business Web Development | Content Creation | Analytics and Reporting | SEO
Who is online
Users browsing this forum: Majestic-12 [Bot] and 161 guests