I successfully implemented this in a 4.0.14 store that I did. But I am now doing another store, and it's in 4.0.17. I wasn't able to simply copy the same stuff over and get everything to work correctly. Having the name copied to the billing part works fine, but when I check the box to move the billing fields into the shipping fields, I get an error. It unfortunately doesn't give me much to go on, on where to troubleshoot.
So, has anyone successfully get this to work in v4.0.17 ? Or, I guess more importantly, what has changed between versions that I might be able to rework this myself?
***EDIT***
I went back into my store with Friefox and enabled the Javascript Console. It gives me a detailed error message now:
Error: document.getElementById("_s_state") has no properties
Source File:
http://www.xxxxxxxxx.com/skin1/copybilling.js
Line: 10
In the copybilling.js file, this is line 10:
_s_state = document.getElementById('_s_state').value;
I have copied and pasted the javascript I am using from redlime's example.
Thanks!
Brian