Jump to content

Recommended Posts

I'm trying to add a checkbox to remove a print status I have created form all orders. 

 

The checkbox is below, notify check box on the history tab in the order info page. 

 

   
<td><?php echo $entry_remove_print_status; ?></td>
<td><input type="checkbox" name="unprinted" value="1" /></td>

 

as the per the controller 

 


$this->model_sale_order->addOrderHistory($this->request->get['order_id'], $this->request->post);

 

The above code will send all post data to the method addOrderHistory. 

 

in the model I have created. 

 


if($data['unprinted'])
{
$this->db->query("UPDATE `" . DB_PREFIX . "order` SET `printed` = '0' WHERE order_id = '" . (int)$order_id . "'");
}

 

However the system doesn't seem to be recognizing the $data['unprinted'], what is it i'm doing wrong?

 

I'm new to opencart development so it could me something so simple. 

 

Thanks for reading.

Link to comment
https://forums.phpfreaks.com/topic/292728-opencart-undefined-index/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.