tuyennn / magento2-outofstockatlast

Magento 2.4.x module Sort Out Of Stock Product At last the product list
GNU General Public License v3.0
55 stars 12 forks source link

Module uses stock quantity and not salable qty for sorting #12

Open chequille opened 2 years ago

chequille commented 2 years ago

Preconditions (*)

  1. Magento version 2.4.3

Steps to reproduce (*)

  1. Opening a catalog site. Products having a stock qty shows first in the list, So good so far

Expected result (*)

  1. The module should look at the saleable qty and not the quantity in stock.

Actual result (*)

  1. Currently, if a product does have salable qty 0, it is still shown at the beginning of the list and not sorted.
  2. Reason is that the module is not using salable qty
chequille commented 2 years ago

Hi this is an ongoing bug in Magento since Inventory modules were introduced because many methods do look for the quantity in stock and not the salable quantity. I am fighting with this since more than a year but nobody really cares.