VirtueMart Forum

VirtueMart 2 + 3 => Templating & Layouts => Topic started by: banderson on October 13, 2015, 23:36:41 pm

Title: Remove sort by and results bars on a page
Post by: banderson on October 13, 2015, 23:36:41 pm
I only have 4 products on a page and need to remove them or disable them.  How do I do that.
Thank you   :)
Title: Re: Remove sort by and results bars on a page
Post by: GJC Web Design on October 14, 2015, 00:31:08 am
template over ride of your categories view default.php
Title: Re: Remove sort by and results bars on a page
Post by: banderson on October 14, 2015, 02:05:29 am
Thank you for your quick response.  I am really new to the program.  Can you tell me exactly how to do that?  Thank you.   :)
Title: Re: Remove sort by and results bars on a page
Post by: jenkinhill on October 14, 2015, 10:10:01 am
Assuming you are not already using template overrides you can edit components/com_virtuemart/views/category/tmpl/default.php to remove the orderby-displaynumber div and use the edited file as an override. If you do already use overrides then the file will be in templates/[your Joomla template]/html/com_virtuemart/category/

Alternatively hide the div using a css override, eg for the default VM template,  .orderby-displaynumber { display:none; }

http://docs.virtuemart.net/tutorials/templating-layouts.html