Jump to content

[Solved]Added new method for sorting products


hulk

Recommended Posts

hello
is that there 's a method for adding a new type of product sorting in Preferences / products.I wants to add a sort by the quantity in stock: in-stock will be exhausted first and stocks down list and this sort will be the default one.
I really need your help.
thank you

Link to comment
Share on other sites

  • 4 weeks later...

in file admin\tabs\AdminPPreferences.php

search
array('id' => '5', 'name' => $this->l('Manufacturer')),
array('id' => '3', 'name' => $this->l('Product modified date'))

and after add

array('id' => '6', 'name' => $this->l('quantity'))

then you have ne method of sort products in admin panel tab tools - products

P.S. dont forgot past a comma after $this->l('Product modified date')),

Link to comment
Share on other sites

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...