VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Fintan on October 03, 2012, 10:54:23 AM

Title: Turn off Product filter drop down
Post by: Fintan on October 03, 2012, 10:54:23 AM
I would like to get rid of the product sorting filter drop down in category view on the site.

Have searched for this but couldn't find anything.

any ideas?

Vmart 2.0.11d, joomla 2.5.7
Title: Re: Turn off Product filter drop down
Post by: K&K media production on October 06, 2012, 00:27:22 AM
Make a override and delete this or comment out:

<div class="orderby-displaynumber">
<div class="width70 floatleft">
<?php echo $this->orderByList['orderby']; ?>
<?php echo $this->orderByList['manufacturer']; ?>
</div>
<div class="width30 floatright display-number"><?php echo $this->vmPagination->getResultsCounter();?><br/><?php echo $this->vmPagination->getLimitBox(); ?></div>
<div class="vm-pagination">
<?php echo $this->vmPagination->getPagesLinks(); ?>
<span style="float:right"><?php echo $this->vmPagination->getPagesCounter(); ?></span>
</div>

<div class="clear"></div>
</div>
Title: Re: Turn off Product filter drop down
Post by: Fintan on October 06, 2012, 07:38:45 AM
I don't want to seem stupid, but where doe I find:
Quote<div class="orderby-displaynumber">

and where do I make the override?
Title: Re: Turn off Product filter drop down
Post by: bytelord on October 06, 2012, 15:12:10 PM
Hello,

the override took place inside category/default.php inside your custom vm template (probably under your_joomla_folder/templates/your_joomla_template/html/com_virtuemart/category/default.php).

If you have not overrides take a look here to understand them and how to create them.

http://forum.virtuemart.net/index.php?topic=98505.0
http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system

Regards