Search the Community
Showing results for tags 'Input field'.
-
I want to add a custom input field to the form where the customers confirm their order. I'm struggling with where to read the value of this field. This is what I did: In order-carrier.tpl I added this: <p>{l s='TEST'}</p> <p><input type="text" name="my_test"></p> And so far no problem. It shows perfectly and the customer can give the input. But now.... I have to retrieve the input. I suppose I have to use: $my_test = Tools::getValue('my_test'); Also tried: $my_test = $_POST['my_test']; I tried to place this in several files. But it looks like I cannot find the right place to do this (or I'm overseeing something else). I tried: modules\bankwire\controllers\front\validation.php OrderController.php OrderConfirmationController.php OrderOpcController.php bankwire.php ParentOrderController.php I thought the last one would be the best, since logging shows me that it's the first (processed) in line. EDIT: I thought the first location (validation.php - function postProcess) would be the best, since logging shows me that it's the first (processed) in line. Unfortunately until now I cannot read the value of the input. Of course I would appreciate very much finding someone who's able to give me the hint which will get me out of this headache :-)
-
Hello, it would be great if someone could help me. I'm tried for few days with no success. Message just doesn't appear in order. What I'm trying to do is move "comment" field from 3. Address (image 1) to 5. Payment (before or after client selects Bank Wire payment method (image 2 and 3) to let buyer enter Name, Number and Sort code (it is for transferring money to clients bank account). Other way is add 3 text input fields, that will display details in the order after confirming, it is better, but i think harder to do? I'm copying from order-adress.tpl: <div id="ordermsg" class="form-group"> <label>{l s='If you would like to add a comment about your order, please write it in the field below.'}</label> <textarea class="form-control" cols="60" rows="6" name="message">{if isset($oldMessage)}{$oldMessage}{/if}</textarea> </div> To payment-execution.tpl line 52, the field appears, but does not work. Please help! 1. 2. 3.
-
- input field
- text input field
- (and 5 more)