Jump to content

[SOLVED] New Products Sorting Reversed


Recommended Posts

Hello,

 

I realized that new products page is sorting produtcts in reverse order, displaying on top of the page the oldest of the new products and just added products are placed at the last page of pagination. Anyone noticed that? ( I am running 1.4.4)

 

How can I reverse this odd sorting order, placing most new products first like it usually should be?

 

New product block shows correctly last new porducts first while new-products.php order opposite.

 

I tried looking at new-product.tpl but I guess newproductcontroller.php is sorting them at this line, it do not seems so difficult but I am not able to reverse the order.

 

'products' => Product::getNewProducts((int)(self::$cookie->id_lang), (int)($this->p) - 1, (int)($this->n), false, $this->orderBy, $this->orderWay)

Edited by davers44 (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...
  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...