_brewery_Dev Posted February 6, 2017 Share Posted February 6, 2017 Hello, i am developing a payment module and use HelperList class for listing all transaction made by my module. I wish add new(custom) button to actions array. Here is my functionality $helper = new HelperList(); $helper->shopLinkType = ''; $helper->simple_header = false; $helper->identifier = 'id_transaction'; $helper->actions = array('delete', 'some_new_button'); $helper->show_toolbar = false; $helper->no_link = true; $helper->title = $this->displayName . '- refused requests'; $helper->table = $this->name; but 'some_new_button' don't show in actions buttons. Why any ideas when I wrong? Thanks ! Cheers ! Link to comment Share on other sites More sharing options...
Smart-Modules Posted September 26, 2017 Share Posted September 26, 2017 In 1.6 this worked: $helper->toolbar_btn['new'] = array( 'href' => AdminController::$currentIndex.'&configure='.$this->name.'&add'.$this->name.'&token='.Tools::getAdminTokenLite('AdminModules'), 'desc' => $this->l('Add new...') ); Maybe you can try to adapt it to your code 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