jikail Posted November 27, 2020 Share Posted November 27, 2020 Hello, How pass fields siret and company optionnal to required? Thanks Link to comment Share on other sites More sharing options...
ventura Posted November 29, 2020 Share Posted November 29, 2020 classes/form/CustomerFormatter.php edit this part and save it as follows if (Configuration::get('PS_B2B_ENABLE')) { $format['company'] = (new FormField()) ->setName('company') ->setType('text') ->setLabel($this->translator->trans( 'Company', [], 'Shop.Forms.Labels' ) ) ->setRequired(true); $format['siret'] = (new FormField()) ->setName('siret') ->setType('text') ->setLabel($this->translator->trans( // Please localize this string with the applicable registration number type in your country. For example : "SIRET" in France and "Código fiscal" in Spain. 'Identification number', [], 'Shop.Forms.Labels' ) ) ->setRequired(true); } 1 Link to comment Share on other sites More sharing options...
jikail Posted November 30, 2020 Author Share Posted November 30, 2020 (edited) Thanks, Is possible without writte diectly in core class file? Thanks Edited December 1, 2020 by jikail (see edit history) Link to comment Share on other sites More sharing options...
Hehn-MB Posted August 4, 2022 Share Posted August 4, 2022 What if I want to upgrade my PrestaShop? As is it a core class in a core file I assume it'll be overwritten but not merged. 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