Author Topic: How do you remove the sort by function  (Read 234 times)

confectionery

  • Beginner
  • *
  • Posts: 22
  • A beginner
How do you remove the sort by function
« on: July 12, 2017, 16:03:40 pm »
Hi
I am very new to virtuemart and have no coding background.  Does anybody know how to remove the "sort by"  and results block from the virtuemart template.  I am using virtuemart 3.0.18 and joomla 3.6.2.  I have attached a document for reference (within the red block).  Your help would be greatly appreciated.
tks

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26357
  • Always on vacation
    • Jenkin Hill Internet
Re: How do you remove the sort by function
« Reply #1 on: July 12, 2017, 16:37:03 pm »
You are not using default VirtueMart templates, so probably the easiest way to remove that would be simply to hide it with css.
If you were using the default VM templates for the categories then the following does the job:
.orderby-displaynumber {
   display: none;
}

Add the override to the template custom.css if it has one, or to the last template css file to load. You will have to look at the page code and confirm that the order/display div uses the orderby-displaynumber class.

I am using virtuemart 3.0.18 and joomla 3.6.2.

You should be using Joomla 3.7.3 now as all previous verions are known to be insecure. With that you should use VirtueMart 3.2.2 or later -  http://virtuemart.net/news/latest-news/480-security-release-of-joomla-3-7-be-prepared
The latest VM versions can be found on http://dev.virtuemart.net/projects/virtuemart/files  and VM3.2.4 will be released very soon.

Test any updates on a backup copy of your live site, as there are many new configuration options and your template overrides may need updating, too.

Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

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

Currently using VM3.2.4 on Joomla 3.8.1 PHP 7.0.23

Testing VM3.2.5 on J!3.8.1

confectionery

  • Beginner
  • *
  • Posts: 22
  • A beginner
Re: How do you remove the sort by function
« Reply #2 on: July 18, 2017, 10:46:33 am »
thank you for the feedback and the info on the latest version of virtuemart etc.  will give the override a bash and report back
tks