News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Template Overides

Started by chancehoggan, September 12, 2012, 04:37:25 AM

Previous topic - Next topic

chancehoggan

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


ivus

You can't.

If you absolutely have to, just modify that file.

chancehoggan

Would a custom plugin allow me to override this file? I want to build this site right and allow it to update without issue.

ivus

It depends what you want to do?

Your original question didn't specify what you wanted to do.

zorro lee

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?   

jenkinhill

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