[email protected] Posted June 25, 2015 Share Posted June 25, 2015 Hello,someone try to move or add Save and Stay button in edit product card from footer to header toolbar ? Reviewing the file AdminProductController.php I'm only managed to add icons but not working buttons. How can I add Save and Stay button to method initPageHeaderToolbar() ? Link to comment Share on other sites More sharing options...
[email protected] Posted June 25, 2015 Author Share Posted June 25, 2015 I achieved the target by adding a piece of code to method initPageHeaderToolbar() in AdminProductController.php file: // add link and action save to header tool bar $this->page_header_toolbar_btn['save'] = array( 'short' => 'Save', 'href' => '#', 'desc' => $this->l('Save'), 'js' => $this->l('$( \'[name=submitAddproduct]\' ).click();'));// add link and action save and stay to header tool bar$this->page_header_toolbar_btn['save-and-stay'] = array( 'short' => 'SaveAndStay', 'href' => '#', 'desc' => $this->l('Save and stay'), 'js' => $this->l('$( \'[name=submitAddproductAndStay]\' ).click();'));but this solution is so slow and weak... I'm not satisfied. This is not way what I want get. 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