Save email in quote the soonest for abandoned cart extension | OneStepCheckout Help Center

Save email in quote the soonest for abandoned cart extension

This article applies if you have installed an abandoned cart extension, like e.g. Ebizmarts Mailchimp and want to get the email saved in the quote the earliest possible.

That is actually all there is in abandoned cart extensions: they look for active quotes from database that are idling and notify the e-mail stored in quote.

Quote will be stored in One Step Checkout when ajax refresh of shipping, payment and summary sections is run.

If you want to have quote saved the soonest, so that abandoned cart extension picks it up, you can move email field to 1st position and you can edit checkout.phtml on your site and add trigger to e-mail field to save data straight away when it is changed to line 1164.

    var bemail = $('billing:email');
    if(bemail !== null){
        bemail.observe('change',

get_save_billing_function(url_save_billing, url_set_methods, update_payments, true));

    }