Skip to content

Max Qty Allowed: Core Magento feature removed by #18477 and causes bug #23319 #23731

@duffner

Description

@duffner

Through ticket #18477, a core Magento feature was removed. When removing the ability to set "0" as an allowed value of Max Qty in Cart, multiple things happen.

  1. *The ability to have an "infinite" value allowed in the cart no longer exists, this forces store administrators to set some crazy value or 1,000,000 for this setting since most stores don't restrict by Max amount in cart. This has been native Magento behavior for 11 years
  2. Bug Unable to save edited product when max_sale_qty is Magento's default #23319 is now introduced because the previous default value of 0 is the core default.
  3. Minor issue, but decimal-based inventory no longer works, because sometimes an allowed value of .5 which is now no longer valid (Separate ticket for this will be created)

Preconditions (*)

  1. Magento 2.3.2 & 2.2.8

Steps to reproduce (*)

  1. Install Magento 2.3.1 or 2.2.7
  2. Create a test product
  3. Ensure Max Qty in Cart remains at the default value of "0"
  4. Attempt to save a product

Expected result (*)

  1. [Screenshots, logs or description]
  2. The product should save with "0" as the value set for "Max Quantity in Cart"

Actual result (*)

  1. [Screenshots, logs or description]
  2. Error Unable to save edited product when max_sale_qty is Magento's default #23319 is presented
  3. Product with Max Quantity of "0" cannot be saved

If a customer has an issue with this value, then they should update this value themselves instead of Magento removing this feature.

Metadata

Metadata

Assignees

Labels

Component: InventoryFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Cannot ReproduceCannot reproduce the issue on the latest `2.4-develop` branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: 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