Discount codes on 2.0

when you save it always gets DISABLED, no way to enable discount.
Ok. I will see if I can reproduce this wity the latest version. Meantime you can enable them by setting their status to 1 in mysql.
Issue confirmed.



<?php echo functions::form_draw_toggle('e/d', true); ?>

**Replace with**

<?php echo functions::form_draw_toggle('status', true, 'e/d'); ?>

I have updated the add-on.