codochi Posted October 16, 2015 Share Posted October 16, 2015 Hello~ At BO, I see list: Catalog, Customers by name, Customers by ip address, Orders, Invoices, Carts, Modules. So, how to insert "Search by notes" into there? I think this is useful feature. Thank you! Link to comment Share on other sites More sharing options...
codochi Posted October 16, 2015 Author Share Posted October 16, 2015 (edited) I open AdminSearchControllers.php and insert this code /** @var Order $order */ $row = get_object_vars($order); $row['id_order'] = $row['id']; $row['id_order_invoice'] = $row['note']; //I added to search NOTES $customer = $order->getCustomer(); $row['customer'] = $customer->firstname.' '.$customer->lastname; $order_state = $order->getCurrentOrderState(); $row['osname'] = $order_state->name[$this->context->language->id]; $this->_list['orders'][] = $row; No Action Anyone helps me please~ Edited October 16, 2015 by codochi (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now