I’m trying to get it so a customer can add a shipping address in addition to a billing address at account creation. Right now I am able to have it add the address that acts as the billing and shipping. I am able to copy the address fields for billing but how to do I get it to create two addresses when submitted? How do I get the client side validation to handle the new fields?
Share
It sounds like you may be custom coding this which is not the way to go. Instead, do the following:
Open app/design/frontend/default/default/template/customer/form/register.phtml
Around line 78
Before
Add
That will add the address collection to the form to the registration page, validate it the same as other forms on site, and insert it as a billing and shipping address for you.