jeudi 9 novembre 2017

Prestashop 1.6.1.14 - Send Checkbox Values to Controller

I am relatively new to Prestashop and would like to understand how do I pass checkbox values to module's admin controller to execute a function.

I have queried orders with a function in admin controller and display it in .tpl with the following codes:

{foreach from=$paymentvalidated item=row}
<input type="checkbox" name="payment_validated[]" value={$row.id_order}>
<label>ID: <b>{$row.id_order}</b> | <b>{$row.date_add}</b></label><br/>
{/foreach}

I would like to pass the checkbox values back to admin controller to execute a database update.

Thank you.




Aucun commentaire:

Enregistrer un commentaire