liyinan Posted September 21, 2016 Share Posted September 21, 2016 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 More sharing options...
Martin Uker K Posted September 21, 2016 Share Posted September 21, 2016 Hi Liyinan, What is your version of Prestashop? In the version 1.6.1.4 (In use here) the field is present in the form. More exactly: it is the 3rd field. Maybe I am not understanding well what you are trying to achieve or you are running on an old version... Martin Link to comment Share on other sites More sharing options...
liyinan Posted September 22, 2016 Author Share Posted September 22, 2016 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 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