Alexandre de Lyon Posted June 18, 2014 Posted June 18, 2014 Bonjour à tous et merci pour votre aide, Je vous expose mon problème. Après avoir épluché une multitude de topics, je ne trouve pas d'issue à mon problème. Je suis sur la version 1.5.4.1. Je cherche à ajouter un champ texte au processus de commande du BO pour insérer un N° de commande client à ma commande. Boilà ce que j'ai déjà fait : - J'ai créé un champ String "Customer_Order_Ref " dans la base. - J'ai déclaré ma variable comme suit dans la classe Order.php class OrderCore extends ObjectModel { /** @var sting ref client*/ public $Customer_Order_Ref; public static $definition = array( 'table' => 'orders', 'primary' => 'id_order', 'fields' => array( //........ 'Customer_Order_Ref' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName') } - J'ai modifié le template form.tpl <label>{l s='Bon de commande client :'} </label> <div class="margin-form"> <input type="text" id="Customer_Order_Ref" name="Customer_Order_Ref"/> </div> - J'ai modifié l'AdminOrdersController.php 'Customer_Order_Ref' => array( 'title' => $this->l('Bon de commande'), 'align' => 'center', 'width' => 65 ), -J'ai ajouté au fichier PaymentModule.php $order->Customer_Order_Ref = $Customer_Order_Ref; Mais voilà... Ma variable n'est pas enregistrée dans la base quand je valide ma commande. Un peu d'aide ? Merci Share this post Link to post Share on other sites More sharing options...
Alexandre de Lyon Posted June 18, 2014 Posted June 18, 2014 Un petit UP... Share this post Link to post Share on other sites More sharing options...
Alexandre de Lyon Posted June 19, 2014 Posted June 19, 2014 Personne ? Share this post Link to post 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