Enhance the Product View QTY input to honour to min/max and QTY step
You can install via composer:
- run:
composer config repositories.github.repo.repman.io composer https://github.repo.repman.io
- use composer
composer require proxi-blue/hyva-qtyinput
- enable:
./bin/magento module:enable ProxiBlue_HyvaQtyInput
- run:
./bin/magento setup:upgrade
- run:
./bin/magento setup:di:compile
The module does not add any new configuration options. The min/max/increment options for product quantity is used from core inventory setup.
If a product is configured with either Min / Max and Quantity Increments, the quantity incrment field will notify user of incorrect values entered. If lower than min is entered, it will be set to the min value, and if more than max is entered, it will be set at the max value. The mouse up/down values will honour the step value. If a quantity step is needed, the user will be notifies entered value is not within teh steped range.
Min qty is 8, max qty is 100000, step is 8
Peek.2021-06-07.10-27.mp4
- Not tested with MSI enabled. The site build I created this for has MSI stripped out
- Only tested with Simple Product Types as the site I created this for only has simple products