Marco_Co Posted November 27, 2019 Share Posted November 27, 2019 (edited) Hi, I am writing a module which is used in the checkout process. It is a checkbox which is asking the customer if he wants to send his email address to the carrier for better tracking or if he do not want to send the email address. I have now one problem, the checkbox value. I want to get the value in the hookActionValidateOrder method, but I have no idea how I can get this, because I did not put the checkbox in an extra form, because it makes no sense to confirm only this. I want to get the value after the order is created. Because I do not have a from, I can not use tools::getValue(). Is there any other way to get the checkbox value at this point? Thank you in advance. Edited November 27, 2019 by Marco_Co (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted December 2, 2019 Share Posted December 2, 2019 How did you insert the checkbox? If you find a way to add it inside the form you can use Tools:getValue to evaluate it's value Link to comment Share on other sites More sharing options...
Marco_Co Posted December 2, 2019 Author Share Posted December 2, 2019 (edited) I have created a tpl file with the checkbox and I call this in the carrier form, but I can not get the value with Tools::getValue. I am not sure in which function I could use getValue Edited December 2, 2019 by Marco_Co (see edit history) 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