Jump to content

What dose $lastnameAddress and $firstnameAddress mean ?


ed0522

Recommended Posts

$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

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.

  • Like 1
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...