Hi folks,
How can I overwrite plugin tempate file from theme?
For example, I have plugin called " SwagB2bPlugin" and I cant find the proper solution to extend its frontend / b2bdashboard / index.tpl template from theme ?
Hi folks,
How can I overwrite plugin tempate file from theme?
For example, I have plugin called " SwagB2bPlugin" and I cant find the proper solution to extend its frontend / b2bdashboard / index.tpl template from theme ?
Hello,
do you want to extend the plugin templates with another plugin or extend the plugin templates with your theme?
If you want to extend it via your theme, you need to change the theme inhertiance as described in our documentation: Getting started with Smarty
If you want to extend it via plugin , you can find an example plugin in my github repository: GitHub - mnaczenski/MNExtendB2B
In this case it is necessary to have a look at the subscriber of the plugin you want to extend, because you need to register your plugin template before the plugin registers its template directories.
Moritz
Well, its too late now to make new theme inhertiance, so I will overwrite it from another plugin.
And thank you for the github code you made !!