Jump to content

APE length issue


cristidam

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...