Post by saifcolins » Sat Mar 11, 2023 9:56 pm

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.

Attachments

Success Alert Box.jpg

Success Alert Box.jpg (11.87 KiB) Viewed 1642 times


Newbie

Posts

Joined
Sun Jan 22, 2023 1:04 pm

Post by TMD Extension @ » Mon Mar 13, 2023 2:37 pm

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)

Image

Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations


Active Member

Posts

Joined
Thu Mar 17, 2022 12:59 pm

Post by saifcolins » Mon Mar 13, 2023 4:26 pm

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.

Newbie

Posts

Joined
Sun Jan 22, 2023 1:04 pm

Post by saifcolins » Mon Mar 13, 2023 4:31 pm

TMD Extension @ wrote:
Mon Mar 13, 2023 2:37 pm
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)
Where I can set this code.
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

Newbie

Posts

Joined
Sun Jan 22, 2023 1:04 pm

Post by xxvirusxx » Tue Mar 14, 2023 12:07 am

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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by saifcolins » Tue Mar 14, 2023 1:03 am

xxvirusxx wrote:
Tue Mar 14, 2023 12:07 am
You have tried to contact theme developer?
Yes But Didn't got any support from them.

Plz help me if you want

Newbie

Posts

Joined
Sun Jan 22, 2023 1:04 pm

Post by TMD Extension @ » Tue Mar 14, 2023 6:12 pm

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.

Image

Thanks & Regards
Sehaj Kaur
TMD Extensions
Contact Us For Customisations


Active Member

Posts

Joined
Thu Mar 17, 2022 12:59 pm

Post by SohBH » Fri Apr 14, 2023 5:36 pm

Add it to
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


User avatar
Active Member

Posts

Joined
Mon Nov 02, 2020 12:01 am
Location - Malaysia
Who is online

Users browsing this forum: stevejonas, StevenPaul and 68 guests