Author Topic: Site View - Newest Product First !!  (Read 1251 times)

finc

  • Beginner
  • *
  • Posts: 22
Site View - Newest Product First !!
« on: September 09, 2009, 09:24:29 am »
I have a bookstore and I dont get this view running. Still have older books first on the row.
Where it takes the data to sort "Newest Products" first?
Cant I add older books even now, as I thought it would be the "Availability Date",
but where is the parameter for sorting "Newest Products"

/finc

finc

  • Beginner
  • *
  • Posts: 22
Re: Site View - Newest Product First !!
« Reply #1 on: September 09, 2009, 20:36:12 pm »
line 23 in shop_browse_queries.php
../administrator/components/com_virtuemart/html/shop_browse_queries.php

make the change from ASC to DESC, that's it
$DescOrderBy = strtoupper($vm_mainframe->getUserStateFromRequest( "browse{$keyword}{$category_id}{$manufacturer_id}DescOrderBy", 'DescOrderBy', "DESC" ));

Regards finc

finc

  • Beginner
  • *
  • Posts: 22
Re: Site View - Newest Product First !!
« Reply #2 on: September 09, 2009, 20:42:40 pm »
The point here I have is, that I have Books which I will add to the chart that are old Books, published lets say 1998.  So I want to line them up at the end of the list. There must be and there is a date in the product details, but that does not count until now!

So that would be 'product_available_date'  if I could find out how to sort by it.