VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: saviB on March 27, 2013, 21:48:37 PM

Title: Changing view files for plugins - Like done for modules and components
Post by: saviB on March 27, 2013, 21:48:37 PM
I hope this is an easy one. I recently bought a plugin Saved Cart. It adds a link 'Saved Carts" to VM Profile editor. The displayed file comes from the default.php contained in the plugin. The path is plugins/system/savedcart/views/default.php

So - how do we use overrides for plugins? Meaning, what folder name do we use inside templates/mytemplate/html/ like we do for modules (templates/mytemplate/html/mod_whatever/default.php) or components (templates/mytemplate/html/com_whatever/default.php) ?

I tried:

/plg_system/savedcart/default.php
/plu_system/savedcart/default.php
/plg_savedcart/default.php
/plu_savedcart/default.php

No luck.


Title: Re: Changing view files for plugins - Like done for modules and components
Post by: jenkinhill on March 27, 2013, 23:00:47 PM
Plugin overrides could only be used to a limited extent in Joomla 1.5 if the libraries/joomla/plugin/helper.php  was hacked - see http://forum.joomla.org/viewtopic.php?f=469&t=242905#p1605175

Plugin overrides have never been a reported feature of Joomla, so I doubt if suitable code was officially ever included in J1.5 or J2.5
Title: Re: Changing view files for plugins - Like done for modules and components
Post by: saviB on March 28, 2013, 19:25:27 PM
So I guess the solution is make a back up and simply edit the default.php in place - then check it each time an upgrade comes out. Sigh...