Your account is limited to posting only in the Pre-Sales Questions forum.
Support forum access is limited to members with a purchase history.

If you are working on behalf of another member, please contact us with the name of the license holder and we will upgrade your account.
   
 
Billing and Shipping information the same
Posted: 10 May 2010 05:48 AM   [ Ignore ]
Is a Really Great Dancer
RankRank
Total Posts:  99
Joined  2010-04-28

Has anyone done up a checkout template where they’ve implemented a checkbox that allows the user to say whether the billing and shipping information is the same?

Profile
 
 
Posted: 10 May 2010 06:59 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRank
Total Posts:  152
Joined  2010-01-19

I haven’t done it but it should be quite straightforward to do using Javascript. I’d opt for using the jQuery library.
Then, have the script auto complete the fields for you when the user ticks the box (and clear them if they untick it).

I can see a potential problem there if they tick the box then update some of the info so perhaps you would also need to disable the shipping address fields when the box is ticked.

You might even want to simply do the auto population of the shipping fields only when the form is submitted - this would also cover things if they changed the billing address AFTER ticking the box.

Phew!

 Signature 

Pete Eveleigh | Fantastic Machine | Gloucester, UK | vCard | Twitter

Profile
 
 
Posted: 10 May 2010 07:03 AM   [ Ignore ]   [ # 2 ]
Is a Really Great Dancer
RankRank
Total Posts:  99
Joined  2010-04-28

Hmm, ok. Will take a look at the Javascript angle. I can certainly see pros and cons for doing/not doing. It’s not a show stopper though.

Cheers
Brendan

Profile
 
 
Posted: 10 May 2010 10:57 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRank
Total Posts:  3369
Joined  2009-05-29

Take a look at this: http://cartthrob.com/docs/tags_detail/checkout_form/#form_fields

That use_billing_info form input will tell the checkout form to use billing info as shipping info. I usually pair this with some javascript to disable the shipping fields.

Profile