Skip to content

Set maximum Qty Allowed in Shopping Cart is 0 still allow adding to cart #18477

@duongdiep212

Description

@duongdiep212

Preconditions

  1. Magento Open Source and Commerce 2.2.x
  2. PHP 7.1
  3. Sample data is installed

Steps to reproduce

  1. Click to edit simple product, then click "Advanced Inventory ", enter 0 in "maximum Qty Allowed in Shopping Cart" field
  2. Go to front-end and add this product to cart.

Expected result

Show message can not add qty to cart : The most you may purchase is 0.

Actual result

Still adding qty to cart with no limit.

Metadata

Metadata

Assignees

Labels

Fixed 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: Format is validGate 1 Passed. Automatic verification of issue format passed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions