News:

Support the VirtueMart project and become a member

Main Menu

Sort by price high to low by default

Started by bettondesign, April 09, 2013, 10:23:19 AM

Previous topic - Next topic

bettondesign

Hi
Does anyone know how to display products sorted by price high to low by default. The default is currently low to high.

Joomla 2.5.9
Virtuemart 2.0.20b

mediastreet

Hi there,

Conquered this issue the other day. You'd need to do a hack to a core VM file.

administrator/components/com_virtuemart/models/product.php

Around line 146 you should have:

         $filter_order_Dir = strtoupper (JRequest::getWord ('order', 'ASC'));

Change it to:

         $filter_order_Dir = strtoupper (JRequest::getWord ('order', 'DESC'));

Hope that helps!


Media Street Ltd, Exeter, Devon.
Exeter Web Design > Follow me on Twitter

Tobes

after a lot of google searching and trawling through these forums at last I found your post.

Many Thanks