Jump to content

Update two db fields from one input [registration process]


HaCos

Recommended Posts

Hello, i have opc enabled and i working with new customer registration form. I mentioned that first & last name is asked twice in the case of a new customer, one for customer info and second for address. 

My first approach was to hide/remove the fields from customer form that had as a result to create a customer thats saved as untitled untitled for these fields.

 

I am looking for way to update both pairs of fields from one input. Being more specific, i want to remove the first & last name input fields from customer registration and update them in db by the inputs saved for address first & last name.

I am looking into the classes (classes/Customer.php & classes/Address.php) but nothing so far.

Any ideas are welcome :)

 

Regards,

C

post-795785-0-21256300-1411635539_thumb.png

Link to comment
Share on other sites

Hello,

 

I don't think that it is a good idea to remove these fields from the Form.

It is often the case that you let deliver something to another address than your own.

 

I would prefer using some javascript that updates the Firstname and Lastname in the second part when leaving the field in the first part.

Link to comment
Share on other sites

Hello,

 

I don't think that it is a good idea to remove these fields from the Form.

It is often the case that you let deliver something to another address than your own.

 

I would prefer using some javascript that updates the Firstname and Lastname in the second part when leaving the field in the first part.

Hi,

 

Any idea how will might look like in javascript?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...