Jump to content

[PS 1.7.7] Mobile phone numbers appears on delivery address, but should not


Recommended Posts

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

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

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

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