I'm creating my own layout for the Thank You page by embedding the javascript variables in my template. Everything works fine except for the ss_name. I'm trying to print out the customer name but I keep getting the name of the first item in the cart. Any ideas?
<script>
document.write("<tr><td>Name</td><td>" + ss_name + "</td></tr>");
document.write("<tr><td>Email Address</td><td>" + ss_email + "</td></tr>");
document.write("<tr><td>Address 1</td><td>" + ss_address1 + "</td></tr>");
document.write("<tr><td>Address 2</td><td>" + ss_address2 + "<td></tr>");
document.write("<tr><td>City</td><td>" + ss_city + "</td></tr>");
document.write("<tr><td>State</td><td>" + ss_state + "</td></tr>");
document.write("<tr><td>Zip Code</td><td>" + ss_postalcode + "</td></tr>");
document.write("<tr><td>Country</td><td>" + ss_country + "<td></tr>");
document.write("<tr><td>Phone Number</td><td>" + ss_phone + "</td></tr>");
</script>