Author Topic: Remove sort by and results bars on a page  (Read 1490 times)

banderson

  • Beginner
  • *
  • Posts: 11
  • A beginner
Remove sort by and results bars on a page
« 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   :)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9191
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: Remove sort by and results bars on a page
« Reply #1 on: October 14, 2015, 00:31:08 am »
template over ride of your categories view default.php
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

banderson

  • Beginner
  • *
  • Posts: 11
  • A beginner
Re: Remove sort by and results bars on a page
« Reply #2 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.   :)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27570
  • Always on vacation
    • Jenkin Hill Internet
Re: Remove sort by and results bars on a page
« Reply #3 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.6.8.10197 on Joomla 3.9.13 PHP 7.0.33