![]() |
Ugggggh yes your right.... that's so stupid!!
Hmmm so it seems like putting the checkbox in IS the best thing to do then even on 4.0.* unless you want to really annoy your customers :wink: Regarding the 'First Name' and 'Last Name' fields in Billing/Shipping Address (in the cart form) has anyone just hidden/commented them out? Does this cause any problems with the registratioin process from the cart? Cheers, Nicki |
Nicki
Quote:
I found this post that shows you how to hide these fields. I have not tried it myself though. Hope this helps. http://forum.x-cart.com/viewtopic.php?t=17146&highlight=profile Hope this helps. |
I have this MOD working on my sire right now but wanted to change it a little bit.
Rather than have the "check box" show up at the bottom of the skin1/main/register_billing_address.tpl I would like to put it at the top of the skin1/main/register_shipping_address.tpl except I don't know java at all and am not sure what to change in this code so it pulls the info from the register_billing_info. Code:
{* ======== COPY BILLING TO SHIPPING MOD ======= *} Any Java experts out there? |
Thanks for the link CopperB I hadn't seen that post, will put it on my pile of things to do... which never seems to get any smaller!!
As one good turn deserves another.... Regarding the javascript changes you shouldn't need to make any. Just cut and paste the code in your message from register_billing_address.tpl to register_shipping_address.tpl and as long as you don't have both checkboxes and your calling the javascript from the customer/home.tpl as described earlier the javascript will work exactly the same as before. |
Thanks Nicki,
Quote:
That was the problem. When I was testing it I had the checkbox code in both the billing and shipping templates. I removed from the billing template and it is working properly. |
I am wanting to make this mod a little neater by changing it to a Button (instead of the checkbox) that says "Same as Billing" on the button.
Current checkbox code: Code:
function InitSaveVariables_shipping(form){ I am not sure what I need to change in the code to get it to say Same as Billing on the button itself. I know the input type is changed to Button but can't figure out how to get the text on the button itself. Changing name="copyb" to Same as Billing did not work for me. Any help is appreciated. |
Instead of
<input type="checkbox" name="copyb" onclick=javascript:copybilling(this.form);>Use {$lng.lbl_billing_address} as {$lng.lbl_shipping_address} Try tu put this <input type="submit" name="copyb" value="Shipping same as Billing" onclick=javascript:copybilling(this.form);> |
check box for "same as billing address"
Thank heaven for this form. I am not a developer so you guys are a great help to me.
For those who have added the check box and can't get the user data to show up in the billing section for Mozzilla, but works in IE.... Add quotes around to the javascript call , as follows: {* ======== 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 ======= *} |
I thought about this whole first name/last name thing a bit more and decided that there may well be times when the billing and shipping names are different to the original registered names. My theory being that I sometimes use my other halfs card to purchase online and if I was sending it to someone else as a present then that would be three sets of names.
Anyway I decided to keep the names fields visible but implement an additional checkbox for the name copying that copies the title, first and last names from personal info into billing and shipping info. Taking out the names copying lines in the original copybilling script and adding this copyname script instead. Code:
function InitSaveVariables_name(form){ The script is used in exactly the same way as the original copybilling so you need to add a checkbox called 'copyn' and call the javascript 'copyname.js' in the home.tpl as described previously in this post. Hope that helps someone else. Nicki |
Hi,
Thank you for this help as my customers would not use this site because of the shipping problem. They always went back to the old site to order. Maybe someone would have the answer for another problem I have with shipping. I had someone do a drop down box so it would automatically revert to the cheapest shipping method. It does that but it won't give them the option of choosing UPS as another method of shipping. If it's 1 dvd it cost $2.00 to ship that will automatically show up but if they want to choose ups it will not allow them to change to that method. Delores |
All times are GMT -8. The time now is 07:57 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.