nspinheiro Posted February 26, 2013 Share Posted February 26, 2013 Hi I have 1.5.3 and i an trying to get the VAT field in the registration process has mandatory. I've looked inside the address.php file but the file does not have any relevant info How can i make this change? Thanks, Link to comment Share on other sites More sharing options...
nspinheiro Posted February 28, 2013 Author Share Posted February 28, 2013 Hi No one can help me with this? Thanks in advance Link to comment Share on other sites More sharing options...
silberstern Posted September 17, 2013 Share Posted September 17, 2013 Perhaps this thread is what you are looking for? http://www.prestashop.com/forums/topic/217263-vat-number-in-registration-form-mandatory/?hl=%2Bmake+%2Bvat+%2Bmandatory Link to comment Share on other sites More sharing options...
vekia Posted September 17, 2013 Share Posted September 17, 2013 classes/Address.php you've got there object definition. Change 'vat_number' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), to 'vat_number' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true), Link to comment Share on other sites More sharing options...
vekia Posted September 17, 2013 Share Posted September 17, 2013 you can also go to localization > countries then click on "edit" button near your country, then select this option (switch it to YES) 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