Skip to content

If stock is bellow OutOfStock Threshold, a negative qty is displayed in Product List Page #9130

@popoviciandrei

Description

@popoviciandrei

Preconditions

  1. Magento EE v2.1.4 or CE 2.1.5

Steps to reproduce

  1. Set qty to 5 for a product, and Out of Stock threshold to 10. Save the product
  2. When browsing that product in the frontend a "Only -5 left" is displayed under "Out of Stock" message.

Expected result

  1. the qty block should not be rendered with a negative value.

Actual result

  1. screen shot 2017-04-04 at 15 43 19

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: CatalogFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions