wimotek Posted April 25, 2024 Share Posted April 25, 2024 i found a strange thing. why do the prestashop allow a customer leave both phone and mobile blank. where can i set it at least fill one , phone or mobile if no phone or mobile left , how could you ship your order? Link to comment Share on other sites More sharing options...
Andrei H Posted April 25, 2024 Share Posted April 25, 2024 Hello, Even if these fields are optional by default, you can change this behavior. You can achieve this by going to: Admin -> Customers -> Addresses -> click the 'Set required fields for this section', check one of the phone fields and save. At this point, that field should be mandatory. Link to comment Share on other sites More sharing options...
wimotek Posted April 25, 2024 Author Share Posted April 25, 2024 10 minutes ago, Andrei H said: Hello, Even if these fields are optional by default, you can change this behavior. You can achieve this by going to: Admin -> Customers -> Addresses -> click the 'Set required fields for this section', check one of the phone fields and save. At this point, that field should be mandatory. good, it's real help for me. im confused why the ps doesn't set the field in default. it should be one out of two in mandatory by default. Link to comment Share on other sites More sharing options...
wimotek Posted April 26, 2024 Author Share Posted April 26, 2024 there is a bug . i set mobile phone in mandatory, but it didn't show when checkout. Link to comment Share on other sites More sharing options...
Andrei H Posted April 26, 2024 Share Posted April 26, 2024 Hello, By default, the field displayed at checkout is the 'Phone' one, not the 'Mobile Phone' one. If you want 'Mobile Phone' displayed in there, you need to go to Admin -> International -> Locations -> Countries, edit the Country/Countries that you allow in your shop and in the Address format field add the 'phone_mobile' field under 'ADDRESS'. Once saved, the Mobile Phone should also be displayed at checkout for these countries. Link to comment Share on other sites More sharing options...
wimotek Posted April 28, 2024 Author Share Posted April 28, 2024 thanks, you are good at the ps. it provide more customized fuctions. could i suggest the ps could be more intellent. let the customer decide which one fill in or both. the show it auotmatically, hide if one is null. Link to comment Share on other sites More sharing options...
Andrei H Posted April 28, 2024 Share Posted April 28, 2024 Hello, While that functionality is not present in the PrestaShop core, you should be able to achieve it with a custom module. Link to comment Share on other sites More sharing options...
Prestashop Addict Posted April 29, 2024 Share Posted April 29, 2024 Le 28/04/2024 à 3:22 AM, wimotek a dit : thanks, you are good at the ps. it provide more customized fuctions. could i suggest the ps could be more intellent. let the customer decide which one fill in or both. the show it auotmatically, hide if one is null. In most cases only mobile phone is mandatory, because it's used by carriers for SMS notifications. 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