Jump to content

How to set alias automatically when create address in backoffice?


liyinan

Recommended Posts

Hi,

 

I'd like to set alias to address1 automatically when creating an address in backoffice. I have checked AdminAddressesController.php but I don't know how the settings were saved.

 

Could someone tell me how to where can I find useful information about prestashop developing, when I try to add a new function I don't know which file should I change.

 

Thank you.

Link to comment
Share on other sites

Thank you for your reply.

 

I use 1.6.1.6 . the alias for address is somehow a little confusion for some of the customers. so I hide this from the form but set it to address1+name. In front office, I modified Addresscontroller.php and made it by adding  $address->alias=$address->address1.' '.$address->firstname; in function processSubmitAddress(). 

for BO, I don't know how to modify AdminAddressController.php, the code is quit different.

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...