Amazzing Posted January 9, 2014 Share Posted January 9, 2014 (edited) Hello, And I need to add a line of html code to 'combinations' tab on product edit page, using a module. I couldn't find any specific hooks in template/controllers/products/combinations.tpl So I decided to add this line dynamically, using jQuery. As a temporary solution, I used displayAdminProductsExtra hook in the module. And I have a script inside included .tpl, that hides extra tab on the left and adds the reuired line to 'combinations' tab. Obviously, this is not the best solution. First of all, it takes 1-2 seconds to load the extra tab contents, so the tab on the left is hidden with delay. Second, this way just doesn't look right. So my question is: what would be the best way to run a script when 'combinations' tab is loaded? If there is any better way to add a line of html code to 'combinations' tab, it would be even better:) Edited January 9, 2014 by Amazzing (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