Skip to content

minNumberInOrder and maxNumberInOrder seem to not be respected #270

@netbrothers-tr

Description

@netbrothers-tr

Bug Report

Current Behavior

If minNumberInOrder and maxNumberInOrder in a product are set, you are still able to put less than minNumberInOrder and more than maxNumberInOrder items into your cart.

Expected behavior/output

I would expect that the default template (Resources/Private/Partials/Product/CartForm.html) would consider those values and set a min and a max attribute on the input element for the item quantity.

Environment

  • TYPO3 version(s): 13.4.18
  • cart version: 11.4.14
  • cart-products version: 7.1.0
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes
  • OS: Ubuntu Linux

Possible Solution

If that's really a bug and I'm not overlooking anything, fixing this opens up the opportunity to add another property (named "bundleSize" for instance) which would control a step size. As an example: you could offer bananas and require a minimum of 5, a maximum of 25 items in an order and only allow amounts divisible by 5 (5, 10, 15, 20, 25).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions