Andreas von Ballmoos Posted July 20, 2022 Share Posted July 20, 2022 Dear all Because the mobile phone is a required field when asking for the customer's address it also appears on the delivery slip. But this is against the customers' privacy feeling. How can I remove it just from the delivery address (or if needed, also from the invoice address) that is printed out? Kind regards Andreas Link to comment Share on other sites More sharing options...
Ali Samie Posted July 20, 2022 Share Posted July 20, 2022 Hi. You should override the "classes/AddressFormat.php" There is a method called "generateAddress(Address $address, $patternRules = [], $newLine = self::FORMAT_NEW_LINE, $separator = ' ', $style = [])" You should override this file and add a check process, in which you can decide when and where to delete mobile number from the address. Link to comment Share on other sites More sharing options...
Andreas von Ballmoos Posted July 23, 2022 Author Share Posted July 23, 2022 OK, thanks. And how exactly can I do that? Link to comment Share on other sites More sharing options...
Ali Samie Posted July 23, 2022 Share Posted July 23, 2022 I have added a new issue here and posted the relative solution: https://github.com/PrestaShop/PrestaShop/issues/29149 Link to comment Share on other sites More sharing options...
Andreas von Ballmoos Posted July 26, 2022 Author Share Posted July 26, 2022 Sorry, I have never had any work with Hooks and Override, so the help of this is limited for me :( Link to comment Share on other sites More sharing options...
Ali Samie Posted July 26, 2022 Share Posted July 26, 2022 A plus point of open source softwares like prestashop is that there are plenty of rich documents availble for any topic. You can search for how to apply overrides in prestashop and learn it as this is an elementary skill. If you by any reason can not do that, you can ask for questions, otherwise you could have a developer do that for a fair price. Link to comment Share on other sites More sharing options...
Tom Girou Posted July 27, 2022 Share Posted July 27, 2022 I'd personally just make it optionnal. Sometimes I feel safer to put my phone number as the delivery guy can call me if I do not reply to my home bell. 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