Community Forums 

Main Content

Discount before Cart Abandonment

    Mar 18 2016 12:22:23

    #1

    TeaHerbMilkSoaps

    Join date : 2015-06-03      Posts : 7

    Before a customer abandons their shopping cart on my site, is it possible to have an email popup when they try to close the page, offering a discount? For instance, something like
    "Don't let this one get away! Use Code 1234 Today at Checkout and receive an additional 10% off your purchase. "

    The code would end at midnight, but would offer incentive for that customer to complete their purchase. Thanks in advance.



    Mar 18 2016 18:53:32

    #2

    GT

    Join date : 2008-09-18      Posts : 3207

    Change the body tag on your page to...

    <body onunload="UseCode();">

    In the head area of the page add...

    <script type="javascript">
    function UseCode()
    {
    alert("Don't let this one get away! Use Code 1234 Today at Checkout and receive an additional 10% off your purchase.");
    parent.close();
    }
    </script>

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.