VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: kodyxgen on November 27, 2014, 21:46:03 PM

Title: Overwrite default view
Post by: kodyxgen on November 27, 2014, 21:46:03 PM
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.
Title: Re: Overwrite default view
Post by: jenkinhill on November 27, 2014, 23:15:18 PM
Yes, use template overrides.
http://docs.virtuemart.net/tutorials/33-templating-layouts.html
http://www.ostraining.com/blog/joomla/overrides
Title: Re: Overwrite default view
Post by: kodyxgen on November 27, 2014, 23:27:52 PM
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.
Title: Re: Overwrite default view
Post by: jenkinhill on November 28, 2014, 11:28:32 AM
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).