News:

Looking for documentation? Take a look on our wiki

Main Menu

Dismiss the SORT BY line

Started by GooRu, April 28, 2012, 00:01:30 AM

Previous topic - Next topic

GooRu

Hi..

A the top of the page after a CATEGORY link is pressed, the product appear on a page and at the top is SORT by I'd like to dismiss this line altogether, how would I do that?



[attachment cleanup by admin]
Joomla Web Development, Hosting and site management

jenkinhill

#1
You just need to remove the code displaying the sort, thus retaining your default sort method.

Make a copy of joomla_root/components/com_virtuemart/views/category/tmpl/dfault.php and using a plain text editor remove the following code (around line 173):


<div class="orderby-displaynumber">
<div class="width70 floatleft">
<?php echo $this->orderByList['orderby']; ?>
<?php echo $this->orderByList['manufacturer']; ?>
</div>



Then save the file and save it as an override in your Joomla template: /joomla_root/templates/(your joomla template)/html/com_virtuemart/category/  - default.php
See http://forum.virtuemart.net/index.php?topic=90935.0

This prevents the change being overwritten during VirtueMart updates.
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

GooRu

#2
Kelvyn..

Right on, I was hoping that for customization being perceived through updates just had not got there yet with 2.0 intelligence.

Thanks much.
Joomla Web Development, Hosting and site management