juanakamanson Posted June 24, 2019 Share Posted June 24, 2019 (edited) Buenos dias, Llevo unos dias con un error que jamas me habia salido antes. He dado mil vueltas por foros y san Google y no encuentro nada relacionado con esto..... A la hora de Importar clientes por csv me dice lo siguiente.Property Customer->phone is empty 😥 Jamas me ha pedido la tabla de telefono en el csv de clientes (sÍ en el de direcciones) a la hora de importar.... A que puede ser devido esto? P/D- Utilizo prestashop 1.6.1.20 Gracias. Edited June 24, 2019 by juanakamanson (see edit history) Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted June 24, 2019 Share Posted June 24, 2019 Buenos días, @juanakamanson, En 1.6 puedes ir a Preferencias > Clientes y desactivar la opción "El número de teléfono es obligatorio" 1 Link to comment Share on other sites More sharing options...
juanakamanson Posted June 24, 2019 Author Share Posted June 24, 2019 Gracias por Contestar @Rodrigo B Laurindo. Eso lo tengo desactivado, es mas, he repasado modulo por modulo para ver si alguno tenia una opcion de forzar el numero telefono en los clientes.... pero no, estaba todo "correcto". Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted June 24, 2019 Share Posted June 24, 2019 Mira en /overrides/classes por si no tienes un archivo Customer.php ahí 1 Link to comment Share on other sites More sharing options...
juanakamanson Posted June 24, 2019 Author Share Posted June 24, 2019 @Rodrigo B Laurindo ese archivo si existe. Que me recomiendas? Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted June 24, 2019 Share Posted June 24, 2019 Mira si está definido: public static $definition = array( y si en la definición está "phone". Si quieres pega aqui el código. Link to comment Share on other sites More sharing options...
juanakamanson Posted June 24, 2019 Author Share Posted June 24, 2019 (edited) @Rodrigo B Laurindo Te he puesto el archivo en Adjunto . y te pego el codigo public static $definition = array( 'table' => 'customer', 'primary' => 'id_customer', 'fields' => array( 'secure_key' => array('type' => self::TYPE_STRING, 'validate' => 'isMd5', 'copy_post' => false), 'lastname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'firstname' => array('type' => self::TYPE_STRING, 'validate' => 'isName', 'required' => true, 'size' => 32), 'email' => array('type' => self::TYPE_STRING, 'validate' => 'isEmail', 'required' => true, 'size' => 128), 'passwd' => array('type' => self::TYPE_STRING, 'validate' => 'isPasswd', 'required' => true, 'size' => 32), 'phone' => array('type' => self::TYPE_STRING, 'required' => true, 'size' => 45), 'cif' => array('type' => self::TYPE_STRING, 'required' => true, 'size' => 250), 'last_passwd_gen' => array('type' => self::TYPE_STRING, 'copy_post' => false), 'id_gender' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'), 'birthday' => array('type' => self::TYPE_DATE, 'validate' => 'isBirthDate'), 'newsletter' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'newsletter_date_add' => array('type' => self::TYPE_DATE,'copy_post' => false), 'ip_registration_newsletter' => array('type' => self::TYPE_STRING, 'copy_post' => false), 'optin' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool'), 'website' => array('type' => self::TYPE_STRING, 'validate' => 'isUrl'), 'company' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName'), 'siret' => array('type' => self::TYPE_STRING, 'validate' => 'isSiret'), 'ape' => array('type' => self::TYPE_STRING, 'validate' => 'isApe'), 'outstanding_allow_amount' => array('type' => self::TYPE_FLOAT, 'validate' => 'isFloat', 'copy_post' => false), 'show_public_prices' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'id_risk' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'copy_post' => false), 'max_payment_days' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedInt', 'copy_post' => false), 'active' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'deleted' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'note' => array('type' => self::TYPE_HTML, 'validate' => 'isCleanHtml', 'size' => 65000, 'copy_post' => false), 'is_guest' => array('type' => self::TYPE_BOOL, 'validate' => 'isBool', 'copy_post' => false), 'id_shop' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'copy_post' => false), 'id_shop_group' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'copy_post' => false), 'id_default_group' => array('type' => self::TYPE_INT, 'copy_post' => false), 'id_lang' => array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'copy_post' => false), 'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false), 'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate', 'copy_post' => false), ), ); Customer.php Edited June 24, 2019 by juanakamanson (see edit history) Link to comment Share on other sites More sharing options...
juanakamanson Posted June 24, 2019 Author Share Posted June 24, 2019 Supongo que tendre que quitar el 'requerid' de phone, no? Link to comment Share on other sites More sharing options...
Rodrigo B Laurindo Posted June 24, 2019 Share Posted June 24, 2019 Hay un módulo que te cambió las definiciones de clientes. En la línea donde tienes: 'phone' => array('type' => self::TYPE_STRING, 'required' => true, 'size' => 45) cambia por 'phone' => array('type' => self::TYPE_STRING, 'size' => 45) 1 Link to comment Share on other sites More sharing options...
juanakamanson Posted June 24, 2019 Author Share Posted June 24, 2019 @Rodrigo B Laurindo Solucionado , gracias por tu ayuda. Has sido muy amable 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