cristidam Posted December 19, 2014 Share Posted December 19, 2014 Hi, I am having problems with the ape length in the backend. I sorted out the translation and the validation issues by adding the following code both for SIRET and APE in the validate.php file public static function isSiret($siret) { if (Tools::strlen($siret) != 100) return true; } public static function isApe($ape) { if (Tools::strlen($ape) != 100) return true; } Both SIRET and APE are accepted when registering but in the backend i can only see the first 5 characters for APE instead of the 13 characters that i typed when registering. Link to comment Share on other sites More sharing options...
bellini13 Posted December 19, 2014 Share Posted December 19, 2014 Could you provide a screen shot or more detail about which page in the back office you see the customer APE? Link to comment Share on other sites More sharing options...
tuk66 Posted December 19, 2014 Share Posted December 19, 2014 The ape field is 5 characters long in ps_customer table. siret has 14. Change the table schema too. 1 Link to comment Share on other sites More sharing options...
cristidam Posted December 19, 2014 Author Share Posted December 19, 2014 Hi, Thank you for the provided solution. I have no sql knowledge so please tell me if this is corect: phpmysql>database>ps_customer>indexes>ape>changed the value from 5 to 13(as i needed). all 13 characters show up now in the backend but i just wanted to ask you if i need to do anything else? Thank you! 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