Setting “In-stock first” as default option on products pages – Prestashop 1.4
Posted on April 13, 2011
Filed Under Prestashop | Leave a Comment
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
Leave a Reply