• Resolved dominmax

    (@dominmax)


    Hello,
    I have a popup and the content in the popup allows me to add a product to the basket (woocommerce).
    After I add the product to the basket the info appears: “Product successfully added to basket. View Cart”.
    It is important to me to automatically close that popup after the info message.
    And if not automatically after a few seconds, at least by clicking the div with .vpc-success class.
    Is any of that possible?

    Best regards, Domin

Viewing 4 replies - 1 through 4 (of 4 total)
  • Bel

    (@belimperial)

    Hello @dominmax

    Good day, and thanks for writing in!

    I believe we have an article that can help you close the popup automatically. Please check our article: Automatically Close Popup After 10 Seconds to help you achieve this functionality.

    Please update the popup CSS class and seconds according to your needs.

    I hope that helps.

    Let us know if this helps fix the issue or if you have any questions.

    Plugin Support mark l chaves

    (@mlchaves)

    Hey @dominmax,

    On top of what @belimperial suggested, your second option should work too.

    If you can edit your .vpc-success div, you should be able to add the popmake-close and pum-close classes to that div. Adding these 2 extra classes will make your div behave like a close button for that popup.

    Here’s an HTML code example of what I mean.

    <div class="vpc-success popmake-close pum-close">Click here to close</div>

    Thanks!

    Thread Starter dominmax

    (@dominmax)

    Hey @belimperial and @mlchaves,
    Both the solutions are great ??
    Because the popup needs time to be filled (there is product configurator) I can not set a specific time. But maybe with a little help of jQuery I could add the class that would run the after-time close script.
    And additionally use the link to close the popup.

    Thank you very much ??
    Domin

    Maria T

    (@mariatogonon)

    Hello there @dominmax – that’s awesome and we’re glad to hear that! On behalf of my colleagues, you are most welcome! ??

    By the way, if you have a moment then we would very much appreciate it if you could quickly rate the plugin, just to help us spread the word.

    Have a great day! Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Close popup after product buy, by click class or automatically’ is closed to new replies.