amiehling Posted September 8, 2017 Share Posted September 8, 2017 Hi! I have tried several things to get the fields for Company and Identification (ID) mandatory in the customer registration form. I use PS 1.7.2.0 with B2B enabled. Things I have done: - Copied Address.php to override/classes using 'required' => true at the corresponding fields. - Used the "Mandatory Fields"-section in Customers > Addresses. - VAT number and company are listed under mandatory fields in International > Countries > [My country] > Edit. Nothing helps. Would appreciate any help! :-) // Andreas Link to comment Share on other sites More sharing options...
amiehling Posted September 8, 2017 Author Share Posted September 8, 2017 I will give a partial answer myself :-) I tried again using the correct settings here: - Used the "Mandatory Fields"-section in Customers > Addresses. - VAT number and company are listed under mandatory fields in International > Countries > [My country] > Edit. Now I see that the fields are mandatory - but ONLY in step 2 of the checkout process. Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted September 9, 2017 Share Posted September 9, 2017 I will give a partial answer myself :-) I tried again using the correct settings here: - Used the "Mandatory Fields"-section in Customers > Addresses. - VAT number and company are listed under mandatory fields in International > Countries > [My country] > Edit. Now I see that the fields are mandatory - but ONLY in step 2 of the checkout process. I advise switching to one page check out. I recommend using a paid 3rd party OPC module in general. Link to comment Share on other sites More sharing options...
sideways Posted January 15, 2018 Share Posted January 15, 2018 Did anyone succeed at making any fields other than the standard ones required? I am making the same attempts OP is doing in the previous posts but it seems undoable. I remember this being an issue also in version 1.6, time to fix it perhaps? Most people would argue it is a pretty basic functionality in a registration form to select which fields are supposed to be mandatory. No? Link to comment Share on other sites More sharing options...
pattila01 Posted May 11, 2020 Share Posted May 11, 2020 Put the "->setRequired(true)" expression to the "company" and "siret" in /classes/form/CustomerFormatter.php. I've attached the picture. 1 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