VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: chancehoggan on September 12, 2012, 04:37:25 AM

Title: Template Overides
Post by: chancehoggan on September 12, 2012, 04:37:25 AM
Hi,

I understand the basics to template overides and have managed to create a few different layouts for template files located within tmpl under com_virtuemart/views

How would I overide com_virtuemart/views/view.html.php

Title: Re: Template Overides
Post by: ivus on September 12, 2012, 10:32:31 AM
You can't.

If you absolutely have to, just modify that file.
Title: Re: Template Overides
Post by: chancehoggan on September 12, 2012, 16:02:28 PM
Would a custom plugin allow me to override this file? I want to build this site right and allow it to update without issue.
Title: Re: Template Overides
Post by: ivus on September 12, 2012, 17:19:52 PM
It depends what you want to do?

Your original question didn't specify what you wanted to do.
Title: Re: Template Overides
Post by: zorro lee on September 15, 2012, 10:05:45 AM
How to override a vm template? I understand that I shold put in my template html folder com_virtuemart and views folders with all files, but I don't understand should I put whole default.php for specific theme (view) whatever or just some code what should override the code in template?   
Title: Re: Template Overides
Post by: jenkinhill on September 15, 2012, 10:58:01 AM
Only the modified file need be placed in the override directory.

Overrides have been used since the introduction of Joomla 1.5, we have some documentation on http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system