HaCos Posted September 25, 2014 Share Posted September 25, 2014 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 Link to comment Share on other sites More sharing options...
Qvixx Posted September 25, 2014 Share Posted September 25, 2014 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 More sharing options...
HaCos Posted September 25, 2014 Author Share Posted September 25, 2014 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 More sharing options...
Qvixx Posted September 26, 2014 Share Posted September 26, 2014 Hello, Which PS-Version do you use?Is is the default-OPC or do you use a OPC-module? In PS 1.6.0.9 this is the default behaviour. Greets Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now