VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: z-analysts on August 31, 2015, 00:20:46 AM

Title: How can I hide products on category page?
Post by: z-analysts on August 31, 2015, 00:20:46 AM
Hello!

I would like to hide the products on a page that displays my categories. I found this block of code in /components/com_virtuemart/views/category/tmpl/default.php:


if($this->showproducts){
?>
<div class="browse-view">
<?php


so I assume there is a configuration option somewhere but cannot find it. Any help is appreciated!!

VM 3.0.9.6

Thank you!
Title: Re: How can I hide products on category page?
Post by: GJC Web Design on August 31, 2015, 09:59:22 AM
Isn't it the menu setting of the cat?

Show products

or just add in your template

$this->showproducts = false;