Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.x]: Allowed qty minimum can be higher than maximum or vice versa #3234

Closed
ishetnogferre opened this issue Jul 27, 2023 · 1 comment
Closed
Labels
bug commerce4 Issues related to Commerce v4

Comments

@ishetnogferre
Copy link

What happened?

Description

When entering the "allowed qty" field for a product, you can input a minimum higher than the maximum and a maximum lower than the minimum. Unless there's a reason for this and we just need to tell our clients to input it correctly.

Steps to reproduce

  1. Add for example 4 as a minimum allowed qty
  2. Add for example 2 as a max allowed qty.

Expected behaviour

An error signalling if the range is not possible

Actual behavior

An impossible range, which results in products no longer being able to be added (without warning/error).

Screenshot 2023-07-27 at 11 14 29

Craft CMS version

4.4.16.1

Craft Commerce version

4.2.11

PHP version

8.1.13

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

  • (verbb) Events 2.0.0-beta.10
@ishetnogferre ishetnogferre added commerce4 Issues related to Commerce v4 bug labels Jul 27, 2023
@lukeholder
Copy link
Member

Thanks, this is fixed for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug commerce4 Issues related to Commerce v4
Projects
None yet
Development

No branches or pull requests

2 participants