Skip to content

"Catalog Products List" includes "Out of Stock" products when "Quantity is In Stock" is a required condition of the widget and the products are given the quantity "Out of Stock" from within admin #4108

@tomispepe

Description

@tomispepe

Steps to reproduce

  1. Install Magento version 2.0.0 or above.
  2. Add the sample data
  3. Create a new "Catalog Products List" widget
  4. Add only 1 condition: "Quantity is In Stock"
  5. Add this widget to the layout of cms homepage -> main content top
  6. Save the Widget and Refresh the cache
  7. Open the homepage and verify your list is displayed as expected
  8. Note that this includes the "Joust Duffle Bag"
  9. Go to admin -> products -> catalog -> and select the "Joust Duffle Bag" or some other product that was included in the "Catalog Products List"
  10. Set the quantity for "Joust Duffle Bag" to "Out of Stock"

Expected result

  1. Setting the quantity for "Joust Duffle Bag" to "Out of Stock" should update the catalog_product_entity_int table value for the "Joust Duffle Bag" and "quantity_and_stock_status" to match.
  2. Setting the quantity for "Joust Duffle Bag" to "Out of Stock" should remove the "Joust Duffle Bag" from the "Catalog Products List" widget result when the "Quantity is In Stock" condition is specified where "all conditions are true"

Actual result

  1. Although the cataloginventory_stock_item and cataloginventory_stock_status tables are updated for the "Joust Duffle Bag", the "catalog_product_entity_int" table is never updated by changing the inventory to "Out of Stock"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions