diondp Posted November 21, 2022 Share Posted November 21, 2022 (edited) Hi there, i have created a small custom module with a form which works as expected, however i have tried creating a checkbox with this simple code, but this doesnt get submitted (i have tried using form method="get") and var_dump(Tools::getAllValues()); but the values isnt even in the URL when submitting.. if i change it to input type="text" it works fine... i have no Javascript involved... what am i missing? <input type="checkbox" name="boxorder" id="boxorder" value="1" /> for the controller i use this class bulkorderdisplayModuleFrontController extends ModuleFrontController { public function initContent() { parent::initContent(); $add_cart = Tools::getValue('add_cart'); $update_product = Tools::getValue('update_item'); $update_product_qty = Tools::getValue('update_qty'); $delete_item = Tools::getValue('delete_item'); $searched_item = Tools::getValue('item'); $item_qty = Tools::getValue('qty'); $boxorder = Tools::getValue('boxorder'); Edited November 21, 2022 by diondp (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