Hello guys I want to add a new image field in opencart2
on return product page
How can I add image
field in opencart
I have done as far :
view : return_form.tpl
<div class="form-group">
<label class="col-sm-2 control-label" for="input-comment1"><?php echo $entry_image; ?></label>
<div class="col-sm-10">
<input type="file" name="error_img">
</div>
</div>
In controller return.php
in function add
if (isset($this->request->post['error_img'])) {
$data['error_img'] = $this->request->post['error_img'];
} else {
$data['error_img'] = false;
}
but when I am trying to print the value of $this->request->post['error_img']
it is returning blank
what I am missing