Application Setup and Documentation

Your request has been received. There are a few steps left before you can start enjoying increased sales through recovery of abandoned orders.

Download the PDF version of this document to save and use at any time.

Next steps

  1. Step 1: Verify the app to work with your website

    You will need to authorise the app to work with your website. Click the link below.

    Verify Your Website.

  2. Step 2: Install the Javascript tracking code.

    The Abandon Cart application needs to track and send an email notification to customers who have abandoned an order in your shopping cart. To do this there is a small tracking code snippet that needs to be installed on the payment page of your website..

    Place the following code into the bottom of Registration Buy layout:

    <script type="text/javascript">
    	       if(document.getElementById("EmailAddress").value!==""){sv();}else{document.getElementById("EmailAddress").onblur=function(){sv();}}
    function sv(){var xhr;if(typeof XMLHttpRequest!=='undefined')xhr=new XMLHttpRequest();else{var versions=["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"];len=versions.length;for(var i=0;i<len;i++){try{xhr=new ActiveXObject(versions[i]);break;}catch(e){}}}
    xhr.onreadystatechange=enr;function enr(){if(xhr.readyState<4){return;}
    if(xhr.status!==200){return;}
    if(xhr.readyState===4){}}
    xhr.open("GET","https://prettyapi.net/cart/?orderid={REPLACE}&siteid=&email="+encodeURIComponent(document.getElementById("EmailAddress").value));xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");xhr.send();};
    	       </script>
    TIP – How to access the Registration Buy Layout via the admin

    This can be found under: Site Manager > Module Templates > Online Shop Layouts > Registration Buy

    access-buy-layout

    TIP – How to access the Registration Buy Layout via SFTP

    Once Connected to the website via SFTP the folder path is the following:
    Layouts > OnlineShop >order_registration-AU.html
    Please note that the country code will vary depending on your country setup. If you have a multi language website with multiple domains and layouts, please ensure the tracking code is located on each layout.