Ok--I got it. Here is the copybilling.js for 3.x...or at least this is what worked for me:
Code:
function InitSaveVariables_shipping(form){ |
Fist off thanks for this MOD. It is great. As stated it should be standard in Xcart.
The mod works just as it should be but I have added an " Additional " Phone field in Billing and Shipping. As this is an additional field the code is not copying the phone field. I have not been able to figure out the additional code I need to add in the copybilling.js Also if I need to change any of the code in the other templates used. If anyone knows what I need to add/change that would be great. Thanks |
Hi,
Thanks for your great work, i am using 4.0.11 I followed all of your instructions change the last code you posted but i still getting error. I will be grateful for help Thanks |
1) Create a new file in the skin1 directory called copybilling.js
add this code: Code:
function InitSaveVariables_shipping(form){ 2) in skin1/customer/home.tpl after Code:
<link rel="stylesheet" href="{$SkinDir}/{#CSSFile#}"> add this code Code:
<script language=JavaScript1.3 src="{$SkinDir}/copybilling.js"></script> 3) find skin1/main/register_billing_address.tpl After the last </TR> add this code Code:
{* ======== COPY BILLING TO SHIPPING MOD ======= *} I have tested in Firefox 1.o and IE 6.0 and both work Hope this helps |
CopperB
Thanks, this worked great for me! |
NP jeremy. Glad to hear that it worked for you.
Has anyone tried this with an " Additional " Phone field in Billing and Shipping. As this is an additional field the code mod is not copying the phone field. I have not been able to figure out the additional code I need to add in the copybilling.js Also if I need to change/add any of the code in the other templates used. Thanks |
jeremy35 you still got errors man.
Just checked it out on your site... |
It would appear that some are not giving consideration to the two different registration forms.
Remeber, there is a Checkout sign up page AND and general register page. They dont have the same sign up fields. The general sign up page does not ask for the a Name twice, the checkout sign up does. So on the general signup you have no name field to carry across twice, hence the error. Either create two templates for this or use this .js code: Code:
function InitSaveVariables_shipping(form){ |
CC
You are right. It works on my checkout sign up but not on the general signup. This is from a post of yours earlier in this thread. Quote:
Would you be able to post the code for those 2 new files and what other templates need modified. Thanks |
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){ copybilling2.js Code:
function InitSaveVariables_shipping(form){ 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 ======= *} |
All times are GMT -8. The time now is 08:44 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.