Changing view files for plugins - Like done for modules and components

Started by saviB, March 27, 2013, 21:48:37 PM

Previous topic - Next topic

saviB

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.



jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

saviB

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...