Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

check box for "same as billing address"

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #111  
Old 05-31-2006, 02:35 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

I as well am very interested in an update on 4.0.18? Anyone got this working?
Thanks
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #112  
Old 05-31-2006, 02:41 PM
  cherie's Avatar 
cherie cherie is online now
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,532
 

Default

Quote:
Originally Posted by taltos1
I as well am very interested in an update on 4.0.18? Anyone got this working?s
Yep, this is working on 4.0.18.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #113  
Old 05-31-2006, 03:10 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

I got the following to work in 4.0.18, and I am using the exCheckout Mod, however it only works during the checkout part, and not the "register" part, I read and reread all the posts but I am at a lose as to how to make this work there as well?

Any ideas?

Thanks a lot

Quote:
Originally Posted by DogByteMan
Instructions for 4.0.x using the ezCheckout mod by jon:

In your skin1 folder create the following files

copybilling1.js
Code:
function InitSaveVariables_shipping(form){ s_firstname = form.s_firstname.value; s_lastname = form.s_lastname.value; s_address = form.s_address.value; s_address_2 = form.s_address_2.value; s_city = form.s_city.value; s_state = form.s_state.value; _s_state = document.getElementById('_s_state').value; s_country = form.s_country.value; s_zipcode = form.s_zipcode.value; } function copybilling(form){ if (form.copyb.checked){ InitSaveVariables_shipping(form); form.s_firstname.value = form.firstname.value; form.s_lastname.value = form.lastname.value; form.s_address.value = form.b_address.value; form.s_address_2.value = form.b_address_2.value; form.s_city.value = form.b_city.value; form.s_country.value = form.b_country.value; form.s_zipcode.value = form.b_zipcode.value; change_states(document.getElementById('s_country'), 's_state', 'State/Province', '', '', '', ''); form.s_state.value = form.b_state.value; document.getElementById('_s_state').value = document.getElementById('_b_state').value; } else { form.s_firstname.value = ""; form.s_lastname.value = ""; form.s_address.value = ""; form.s_address_2.value = ""; form.s_city.value = ""; form.s_country.value = form.b_country.value; form.s_zipcode.value = ""; change_states(document.getElementById('s_country'), 's_state', 'State/Province', '', '', '', ''); form.s_state.value = form.b_state.value; document.getElementById('_s_state').value = ""; } }

copybilling2.js
Code:
function InitSaveVariables_shipping(form){ s_address = form.s_address.value; s_address_2 = form.s_address_2.value; s_city = form.s_city.value; s_state = form.s_state.value; _s_state = form._s_state.value; s_country = form.s_country.value; s_zipcode = form.s_zipcode.value; } function copybilling(form){ if (form.copyb.checked){ InitSaveVariables_shipping(form); form.s_address.value = form.b_address.value; form.s_address_2.value = form.b_address_2.value; form.s_city.value = form.b_city.value; form.s_state.value = form.b_state.value; form._s_state.value = form._b_state.value; form.s_country.value = form.b_country.value; form.s_zipcode.value = form.b_zipcode.value; } else { form.s_address.value = ""; form.s_address_2.value = ""; form.s_city.value = ""; form.s_state.value = form.b_state.value; form._s_state.value = ""; form.s_country.value = form.b_country.value; form.s_zipcode.value = ""; } }

In skin1/customer/home_checkout.tpl

after
Code:
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">

add this code
Code:
<script language=JavaScript1.3 src="{$SkinDir}/copybilling1.js"></script>

In skin1/customer/home.tpl

after
Code:
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}">

add this code
Code:
<script language=JavaScript1.3 src="{$SkinDir}/copybilling2.js"></script>

Find skin1/main/register_billing_address.tpl

After the last </TR>
add this code
Code:
{* ======== COPY BILLING TO SHIPPING MOD ======= *} <TR> <TD align="right"></TD> <TD></TD> <TD nowrap> <input type="checkbox" name="copyb" onclick=javascript:copybilling(this.form);>Use {$lng.lbl_billing_address} as {$lng.lbl_shipping_address} </TD> </TR> {* ======== COPY BILLING TO SHIPPING MOD ======= *}
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #114  
Old 05-31-2006, 03:13 PM
  cherie's Avatar 
cherie cherie is online now
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,532
 

Default

Quote:
Originally Posted by taltos1
I got the following to work in 4.0.18, and I am using the exCheckout Mod, however it only works during the checkout part, and not the "register" part, I read and reread all the posts but I am at a lose as to how to make this work there as well?
Do you have any more details on what is not working? Have you used Firefox's Javascript Console to see if you get any errors? I find it invaluable when troubleshooting Javascript.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #115  
Old 06-01-2006, 08:16 PM
 
taltos1 taltos1 is offline
 

Senior Member
  
Join Date: Mar 2005
Location: USA
Posts: 160
 

Default

Hmm. There are numerous it seems there are about 20-30 "unknown properties" is that right? Hmm.... I am not to familiar with this console, can you point me in the right direction.. THanks so much!
__________________
X-Cart Gold Version 4.0.18
EWDHosting.com is my Host
Unix Servers
Reply With Quote
  #116  
Old 06-01-2006, 08:29 PM
  cherie's Avatar 
cherie cherie is online now
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,532
 

Default

Quote:
Originally Posted by taltos1
Hmm. There are numerous it seems there are about 20-30 "unknown properties" is that right? Hmm.... I am not to familiar with this console, can you point me in the right direction.. THanks so much!
Click on Errors at the top to just show the errors (red items). It should give some more detail, such as what is triggering that error. My first thought is that the .js file is not loading or the function/property names you are referencing are incorrect. If you post or PM the web site then I'll take a look.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #117  
Old 08-19-2006, 12:17 AM
  thundernugs's Avatar 
thundernugs thundernugs is offline
 

Senior Member
  
Join Date: May 2003
Location: Bend, OR
Posts: 117
 

Default

i've read through the posts for this mod, it seems folks are still having errors when trying to apply this to 4.0.18, without the ez checkout mod. are the problems occurring only for visitors with macs?

i was about to go through this mod, but since we sell lots of items that are specific to the macs, it would seem like a bad idea.

are there any other options to reduce the triple name entry?

thanks!
__________________
X-Cart Gold 4.0.17 & 4.0.18
Linux Server
Hands-On Hosting
http://www.CoreCases.com - Ipod Cases
http://www.InnovativeOutlet.com - Pet Plants and other cool stuff you need
Reply With Quote
  #118  
Old 09-06-2006, 10:17 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default Re: check box for "same as billing address"

does anybody got it successfully working on 4.0.18 with jons easy checkout?

i need it to work with ez checkout and on ie, safari, mozilla, firefox, netscape.

id be happy to test urs also.
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #119  
Old 12-03-2006, 01:15 AM
 
dfawdon dfawdon is offline
 

Advanced Member
  
Join Date: Feb 2006
Location: UK
Posts: 82
 

Default Re: check box for "same as billing address"

Quote:
Originally Posted by ecommerce
does anybody got it successfully working on 4.0.18 with jons easy checkout?

i need it to work with ez checkout and on ie, safari, mozilla, firefox, netscape.

id be happy to test urs also.

I have this working now with Jon's Easy Checkout, my version is 4.0.17, I used the post by taltos1 for insrtuctions, but amended the copybilling2.js as Firefox was not copying the details across from the standard register page, it was ok in the checkout.

copybilling2.js
Code:
function InitSaveVariables_shipping(form){ s_address = form.s_address.value; s_address_2 = form.s_address_2.value; s_city = form.s_city.value; s_state = form.s_state.value; _s_state = document.getElementById('_s_state').value; s_country = form.s_country.value; s_zipcode = form.s_zipcode.value; } function copybilling(form){ if (form.copyb.checked){ InitSaveVariables_shipping(form); form.s_address.value = form.b_address.value; form.s_address_2.value = form.b_address_2.value; form.s_city.value = form.b_city.value; form.s_state.value = form.b_state.value; form.s_state.value = form.b_state.value; form.s_country.value = form.b_country.value; form.s_zipcode.value = form.b_zipcode.value; change_states(document.getElementById('s_country'), 's_state', 'State/Province', '', '', '', ''); form.s_state.value = form.b_state.value; document.getElementById('_s_state').value = document.getElementById('_b_state').value; } else { form.s_address.value = ""; form.s_address_2.value = ""; form.s_city.value = ""; form.s_state.value = form.b_state.value; form.s_state.value = ""; form.s_country.value = form.b_country.value; form.s_zipcode.value = ""; } }
__________________
X-Cart Gold 4.0.17
X-AOM
Safetynet DSEFU
Easy Checkout
_________________
Reply With Quote
  #120  
Old 02-26-2007, 01:47 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

eXpert
  
Join Date: Sep 2004
Location: TN moving to FL
Posts: 265
 

Default Re: check box for "same as billing address"

I used this with taltos1's instructions except for copybilling2.js, which was provided from dfawdon above. I own a mac & it is working wonderfully for me! I just wanted to let anyone who might be holding off due to the previous mac issue know.
__________________
Mary Lee
-------------------
Dinner and a Murder Mystery Games
http://www.dinnerandamurder.com

x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:59 PM.

   

 
X-Cart forums © 2001-2020