There is no option like that in Back Office -> Preferences -> Products. The relevant admin tabs code shows ( AdminPPreferences.php) :
array(‘id’ => ‘0’, ‘name’ => $this->l(‘Product name’)),
array(‘id’ => ‘1’, ‘name’ => $this->l(‘Product price’)),
array(‘id’ => ‘2’, ‘name’ => $this->l(‘Product added date’)),
array(‘id’ => ‘4’, ‘name’ => $this->l(‘Position inside category’)),
array(‘id’ => ‘5’, ‘name’ => $this->l(‘Manufacturer’)),
array(‘id’ => ‘3’, ‘name’ => $this->l(‘Product modified date’))
which is missing option “6” that stands for the “In-stock first” option.
Simply modify the following two database configuration options:
Change the PS_CONFIGURATION table PS_PRODUCTS_ORDER_BY option to “6”
Change the PS_CONFIGURATION table PS_PRODUCTS_ORDER_WAY option to “1”
That’s it
PS_PRODUCTS_ORDER_BY or PS_PRODUCTS_ORDER_WAY doesn’t exist under the PS_CONFIGURATION table. This must’ve been changed in a new version, do you know where these values are located in 1.4.6.2? Thanks
Hi I am running 1.4.6.2 on one of my shops and it is still there. I am not sure why you do not have it.
Hello!, i have a question:
this fix works perfect, but only one problem, when somebody uses the search box, the results are not showing like categories, with the stock first.