VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Florentp on August 09, 2012, 11:21:50 AM

Title: Ordering products by date creation as "DESC" by default
Post by: Florentp on August 09, 2012, 11:21:50 AM
Hi everybody,

By default i set in Virtuemart "Ordering by Creation date", but it display product from older to newer.
Do you know how to reverse the return by default ? (so DESC and not ASC)?

Thanks a lot.

Florent
Title: Re: Ordering products by date creation as "DESC" by default
Post by: rhand-vm on August 29, 2012, 12:02:32 PM
Did you ever sort this out? New to VM 2.0.
Title: Re: Ordering products by date creation as "DESC" by default
Post by: giupi on August 30, 2012, 11:12:12 AM
I have also the same problem...

http://forum.virtuemart.net/index.php?topic=102590.msg357797#msg357797

Anyone can fix it?

Thanks
Title: Re: Ordering products by date creation as "DESC" by default
Post by: namangarg88 on September 27, 2012, 22:25:47 PM
I am also facing the same problem.
Any fixes available??
Thanks
Title: Re: Ordering products by date creation as "DESC" by default
Post by: Roger Lightening on November 01, 2012, 13:23:52 PM
The way that I was able to change the order was by editing the following file:
administrator/components/com_virtuemart/models/product.php

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

to

$filter_order_Dir = strtoupper (JRequest::getWord ('order', 'DSC'));
Title: Re: Ordering products by date creation as "DESC" by default
Post by: weballabout on May 17, 2013, 16:04:25 PM
Great Worked For me Just Fine!!!
Thanks