has anyone figured out how to get this mod to work with additional fields in billing/shipping info?
|
Quote:
|
im trying to include additional fields in the copy
|
Quote:
Code:
// get additional fields by their id Code:
// values from numbered form elements Code:
<INPUT type="text" name="additional_values[2]" id="additional_values_2" size="32"> |
Quote:
thank you, i dont know why i didnt think of that |
so this is what i ended up with in copybilling.js
Code:
function InitSaveVariables_shipping(form){ |
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 |
Has anyone tried to get this working with the County field? Country works fine, but County is giving me problems. Not sure what to do.
|
This mod rocks :)
Also can do a onblur if needed. I didn't want a check box so I removed the checkbox and ran a little onblur js function to copy each field as the user enters it...Probably not useful for most stores, but very much needed for mine :) |
Hello, I tried to sort thru all the snippets of code to try to get this working for x-cart gold v4.0.18 but no luck.
Can somebody who's using this mod on v4.0.18 help on what needs to be done and where? Thank You. |
All times are GMT -8. The time now is 09:41 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.