Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter augustinore

    (@augustinore)

    Thanks!

    For those who are interested, I was able to recover adresses by triggering this kind of javascript function on the “action-next” button :
    function get_addresses() {
    var prenom=document.getElementById(‘billing_first_name’).value;
    var nom=document.getElementById(‘billing_last_name’).value;
    var societe=document.getElementById(‘billing_company’).value;
    var prenom2=document.getElementById(‘shipping_first_name’).value;
    var nom2=document.getElementById(‘shipping_last_name’).value;

    document.getElementById(‘addresses’).innerHTML= “<div class=’row’><div class=’col medium-6 small-12 large-6′><h3>Billing address</h3>” + prenom + ” ” + nom + “<br>” + societe + “</div><div class=’col medium-6 small-12 large-6′><h3>Shipping address</h3>” + prenom2 + ” ” + nom2 + “<br></div></div>”;
    }

Viewing 1 replies (of 1 total)