VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: rustle on February 11, 2012, 20:34:28 PM

Title: Disable categories from displaying in default virtuemart layout
Post by: rustle on February 11, 2012, 20:34:28 PM
Hi Guys

Thankyou for your hard work to date

I have been searching all over but \I cant seem to find the answer for this....
how would I go about editing the default virtuemart layout beyond the tools given in the VM template editor?

on the the default page I just want top ten & latest products only

but I do not want to upset the categories layout as I have another menu item to go to a categories only page

how would I go about doing this?

VM 2.0.1e
Joomla 1.7.3

thank you in advance
Title: Re: Disable categories from displaying in default virtuemart layout
Post by: josmar on March 01, 2012, 12:04:41 PM
I have the same problem. The fact is how to edit the layouts that come included with virtuemart, I mean, edit for example "default layout" deleting the "top ten" part.
Title: Re: Disable categories from displaying in default virtuemart layout
Post by: jenkinhill on March 01, 2012, 18:04:47 PM
The template files for user editing are in joomla_root/components/com_virtuemart/views/ - within each of those subdirectories is a tmpl directory with usually a file called default.php - that is the default view for that element, and the file that is copied, edited and placed in the relevant template override directory within your Joomla template.

See http://forum.virtuemart.net/index.php?topic=90935.0
http://forum.virtuemart.net/index.php?topic=98505.0
http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Title: Re: Disable categories from displaying in default virtuemart layout
Post by: josmar on March 02, 2012, 16:42:52 PM
Thank u so much. Problem solved  ;D ;D ;D ;D
Title: Re: Disable categories from displaying in default virtuemart layout
Post by: Saturday Morning Comics! on June 19, 2012, 04:28:36 AM
Found the file, but how do I alter it so the categories do not show up on the Virtuemart Frontpage. I tried looking at the above references but they were focusing on some other areas and I didn't know how to translate them to what I need. I am a beginner with editing code, so could someone walk me through it?

Thanks