VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ikone1 on February 07, 2012, 17:55:10 PM

Title: Hide Categories on frontpage?
Post by: ikone1 on February 07, 2012, 17:55:10 PM
Hi how can i hide "Categories" on VM front page? same for Featured prod or Top ten..

thank you.
Title: Re: Hide Categories on frontpage?
Post by: edv on February 10, 2012, 12:40:29 PM
In VM-Configuration -> Templates set the "layout for your home page" to "default_products".
this should do the trick

regards
EDV
Title: Re: Hide Categories on frontpage?
Post by: plastique on April 30, 2012, 09:32:50 AM
Theres no "default_products" option. The only option i have is "default"

I don't want the top level categories to show on my frontpage ? Any idea ?

Thanks!
Title: Re: Hide Categories on frontpage?
Post by: jenkinhill on April 30, 2012, 10:53:38 AM
Make a copy of joomla_root/components/com_virtuemart/views/virtuemart/tmpl/default.php and using a plain text editor either remove or comment out this line:

if ($this->categories) echo $this->loadTemplate('categories');


Save the file as, for example, default_nocats.php and ftp it into your Joomla template's html override directory ,  joomla_root/templates/(your joomla template)/html/com_virtuemart/virtuemart/      See http://forum.virtuemart.net/index.php?topic=90935.0

Then in VM configuration/Templates/VirtueMart Home Page Settings select your new override in "Layout for your home page"

Using the override means that the edit will not be overwritten by VirtueMart updates, although you should check if the original version code of that template changes during an update, in which case you recreate the override.
Title: Re: Hide Categories on frontpage?
Post by: plastique on April 30, 2012, 11:06:59 AM
Great !

Thank you Kelvyn !