News:

Looking for documentation? Take a look on our wiki

Main Menu

Overwrite default view

Started by kodyxgen, November 27, 2014, 21:46:03 PM

Previous topic - Next topic

kodyxgen

Hi,
is there a way to overwrite the default view from component/com_virtuemart/views in that way that if i make an update and the view file is updated i dont have to make all over all my changes to it?

Thank you.

jenkinhill

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

kodyxgen

Thank you for the quick replay

I know that the files in the tmpl folder can be added to the template file  /mytemplate/html/com_virtuemart/category/default.php,
but my interest is in view.html.php.
Can i use the same overwrite method for view.html.php to?

Thank you.

jenkinhill

No, that is effectively a core hack. If what you require cannot be written into a template override or by using a plugin then you only option will be to reapply the hack with everu update (ie every few weeks).
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