VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: perdand on February 24, 2015, 21:27:37 PM

Title: Override Virtuemart 3.x
Post by: perdand on February 24, 2015, 21:27:37 PM
How can I override products layout and the estructure in general. I can't find the files to do it. I was searching on components/virtuemart/views/... and there is nothing

Where are the files or how can I do it?
Title: Re: Override Virtuemart 3.x
Post by: GJC Web Design on February 24, 2015, 22:34:21 PM
??? nothing?

components/virtuemart/views/productdetails/tmpl/default.php  etc
Title: Re: Override Virtuemart 3.x
Post by: perdand on February 26, 2015, 17:29:37 PM
Yes, there are some files, but I mean that in those files I can't find the code necessary to override, for example, the templating of the products in category view.

e.g.

I go to:
components/com_virtuemart/views/category/tmpl/categories.php
or
components/com_virtuemart/views/category/tmpl/default.php

to search this: vm-product-descr-container-1 and make some changes, and I can't find it.

Title: Re: Override Virtuemart 3.x
Post by: jenkinhill on February 26, 2015, 17:44:08 PM
vm-product-descr-container? that will be found in a sublayout.  components/com_virtuemart/sublayouts/
http://docs.virtuemart.net/tutorials/templating-layouts.html

You can use grep on a server to locate text/code strings.
Title: Re: Override Virtuemart 3.x
Post by: perdand on February 28, 2015, 01:09:59 AM
Thank you. That's the answer that I was waiting for