The value should be stored, and the checkbox stays the way it was saved, but this is not happening for some reason.
admin/controller:
Code: Select all
if (isset($this->request->post['show_img'])) {
$data['show_img'] = $this->request->post['show_img'];
} else {
$data['show_img'] = $this->config->get('show_img');
}
Code: Select all
<?php if ($show_img) { ?>
<label><input type="checkbox" name="show_img" value="1" checked="checked" /></label>
<?php } else { ?>
<label><input type="checkbox" name="show_img" value="1" /></label>
<?php } ?>
Am i missing something??? Please, please help, I'm going crazy
