cancel
Showing results for 
Search instead for 
Did you mean: 

Display out-of-stock products last in category pages

0 Kudos

Display out-of-stock products last in category pages

Feature request from bansavage, posted on GitHub Jan 25, 2018

I would like to display out-of-stock products at the end of my category pages. This option does not exist in neither the system configuration nor store configuration. There is also no effective way of programmatically accomplishing this task.

Also, please note that this issue has been documented since November 2016 and has still not been resolved. This has been and is continuing to be a major issue. (https://github.com/magento/magento2/issues/7589)

Preconditions

  1. Magento 2.1.7
  2. Apache Webserver
  3. PHP 7.0

Steps to reproduce

  1. Create a catalog with both in-stock AND out-of-stock products
  2. View a category page and attempt to display the out of stock products at the end of the category page

Expected result

  1. Out-of-stock products are displayed at the end of category pages.

Actual result

  1. In-stock and out-of-stock products are mixed together. Out-of-stock products are not solely at the end of the category page. And in-stock products are not solely at the beggining of the category page
1 Comment
Not applicable

Comment from magento-engcom-team, posted on GitHub Jan 26, 2018

@bansavage, thank you for your report. This seems to be correct Magento behavior. Please refer to the Community Forums or the Magento Stack Exchange site for advice or general discussion about this. Otherwise you may submit Pull Request with the suggested changes.