Wstdhz Posted July 19, 2019 Share Posted July 19, 2019 Bonjour, Sur PS 1.6 j'aimerais augmenter la limite de caractères autorisée pour les noms de transporteur. J'ai rajouté un maxlenght 512 dans AdminCarrierWizardController.php sans que cela ne fonctionne, quelqu'un aurait-il une idée? public function renderStepOne($carrier) { $this->fields_form = array( 'form' => array( 'id_form' => 'step_carrier_general', 'input' => array( array( 'type' => 'text', 'label' => $this->l('Carrier name'), 'name' => 'name', 'required' => true, 'maxlength' => 512, 'hint' => array( sprintf($this->l('Allowed characters: letters, spaces and "%s".'), '().-'), $this->l('The carrier\'s name will be displayed during checkout.'), $this->l('For in-store pickup, enter 0 to replace the carrier name with your shop name.') ) ), En vous remerciant! Link to comment Share on other sites More sharing options...
Eolia Posted July 19, 2019 Share Posted July 19, 2019 Dans la classe aussi peut-être et dans la structure de la BDD également^^ Link to comment Share on other sites More sharing options...
Wstdhz Posted July 19, 2019 Author Share Posted July 19, 2019 Bonjour Eolia, Pouvez-vous préciser ce que vous entendez par dans la classe? Merci Link to comment Share on other sites More sharing options...
Eolia Posted July 19, 2019 Share Posted July 19, 2019 Dans classes/Carrier.php 'name' => array('type' => self::TYPE_STRING, 'validate' => 'isCarrierName', 'required' => true, 'size' => 64), Pas dans la classe de 6ème, effectivement... Link to comment Share on other sites More sharing options...
Wstdhz Posted July 19, 2019 Author Share Posted July 19, 2019 C'était bien dans les classes! Je pensais plutôt aux class html Merci beaucoup, quoi qu'il en soit! Link to comment Share on other sites More sharing options...
Eolia Posted July 19, 2019 Share Posted July 19, 2019 pensez à modifier également la structure de la bdd pour la table ps_carrier car de base la longueur est de 64 pour elle^^ 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