ed0522 Posted August 3, 2015 Share Posted August 3, 2015 $lastnameAddress = Tools::getValue('lastname'); $firstnameAddress = Tools::getValue('firstname'); $_POST['lastname'] = Tools::getValue('customer_lastname', $lastnameAddress); $_POST['firstname'] = Tools::getValue('customer_firstname', $firstnameAddress); Link to comment Share on other sites More sharing options...
bellini13 Posted August 3, 2015 Share Posted August 3, 2015 and from which file did you copy this from? Link to comment Share on other sites More sharing options...
ed0522 Posted August 4, 2015 Author Share Posted August 4, 2015 from authController.php Link to comment Share on other sites More sharing options...
bellini13 Posted August 4, 2015 Share Posted August 4, 2015 There are 3 possible customer names for an order 1) The actual customer name 2) The name of the person who will receive the order (shipping address customer name) 3) The name of the person who is paying for the order (billing/invoice address customer name) In most cases these are all the same, however they do not have to be and they can all be different. So to answer your question, when a customer registers and you configure the store to register an address on account creation, Prestashop copies the customer name to the address record. 1 Link to comment Share on other sites More sharing options...
ed0522 Posted August 4, 2015 Author Share Posted August 4, 2015 Thank you. I understand now. 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