frajdy Posted July 24, 2014 Share Posted July 24, 2014 Hi, i would like to implement my own bulk action function, like the one default in PS16 - change order status. I was able to add a new button under the change order status, modified AdminOrdersController and added $this->bulk_actions my new action, but i can't figure out how to make own functions to process selected orders. I think after clicking change order status is called function renderList() in AdminOrdersController.php to show options of statuses public function renderList() { if (Tools::isSubmit('submitBulkupdateOrderStatus'.$this->table)) { if (Tools::getIsset('cancel')) Tools::redirectAdmin(self::$currentIndex.'&token='.$this->token); $this->tpl_list_vars['updateOrderStatus_mode'] = true; $this->tpl_list_vars['order_statuses'] = $this->statuses_array; $this->tpl_list_vars['REQUEST_URI'] = $_SERVER['REQUEST_URI']; $this->tpl_list_vars['POST'] = $_POST; } return parent::renderList(); } and then function processBulkUpdateOrderStatus() to handle the selected. Can somebody help me where can I add my own function or how to process the selected orders? Thx in advance for any help. Link to comment Share on other sites More sharing options...
Koko888 Posted September 3, 2014 Share Posted September 3, 2014 Hi, did you find a solution? I want to do the same, I need a custom bulk_action in a helperlist. Any idea or solution? Link to comment Share on other sites More sharing options...
frajdy Posted September 4, 2014 Author Share Posted September 4, 2014 Hi, i found out how to add custom bulk button in the menu, but i don't know how the function is proccessed, so i redirect it to my script to process data, u can see my script here. Download AdminOrdersController.php and u can inspire a little. 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