News:

Looking for documentation? Take a look on our wiki

Main Menu

Remove sort by and results bars on a page

Started by banderson, October 13, 2015, 23:36:41 PM

Previous topic - Next topic

banderson

I only have 4 products on a page and need to remove them or disable them.  How do I do that.
Thank you   :)

GJC Web Design

template over ride of your categories view default.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

banderson

Thank you for your quick response.  I am really new to the program.  Can you tell me exactly how to do that?  Thank you.   :)

jenkinhill

#3
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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum