Great News!
I had another one of my "genius" momentsand figured out how to make the tabs stuff into its own template file that can be called when used. I also took all the config stuff and made it into its own config module file. and I've also created a language file for the hard coded tabs.
Now the tpl_product_info_display.php file is nice and small once again and easier to understand when people want to make changes to the non-tabbed look like moving elements around. There are very few changes to the core template file now, only some minor logic to prevent things from showing both on tabs and under them.
The tabs themselves are called now with a 'require' function.
I am now going to be looking at putting Tell a Friend, Reviews, and Ask A Question inside their own tabs and converting this over to the music display template. Now that it is a separate file, it should be simple to merge into any template.
Stay tuned!
Bookmarks