daninapoli Posted April 20, 2021 Share Posted April 20, 2021 (edited) Salve a tutti. in fase di registrazione utente è possibile mettere la ragione sociale obbligatoria e la partita iva al posto del codice fiscale ? La partita iva è solo nell'indirizzo .. Vendo solo come b2b vorrei evitare di comprare un modulo per questo. Edited April 20, 2021 by daninapoli (see edit history) Link to comment Share on other sites More sharing options...
daninapoli Posted April 20, 2021 Author Share Posted April 20, 2021 RISOLTO, ho modificato il file CustomerFormatter.php Link to comment Share on other sites More sharing options...
Creativart_web Posted May 11, 2021 Share Posted May 11, 2021 Ciao! Come hai modificato il file? Link to comment Share on other sites More sharing options...
Creativart_web Posted May 11, 2021 Share Posted May 11, 2021 Ok in teoria sono riuscita a modificarlo inserendo ->setRequired(true); 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); } Link to comment Share on other sites More sharing options...
Luigi Massa Posted May 12, 2021 Share Posted May 12, 2021 attenzione a modificare i file del core direttamente. effettuate almeno un override in modo da non precludere futuri upgrade della piattaforma 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