classic-theme icon indicating copy to clipboard operation
classic-theme copied to clipboard

Fix minimal quantity reset

Open ComonSoft opened this issue 1 year ago • 5 comments

Questions Answers
Description Fixes an issue when a product has a minimum quantity by sale, and user enter a value greater than the minimal with 2 or 3 digits in input field, and click outside, the value comes back to minimal
Category FO
Type bug fix
BC breaks no
Deprecations no
Fixed ticket Fixes #36245, Fixes #28531
Sponsor company @ComonSoft
How to test 1. Go to back office, create a product with a minimal quantity for sale by 5 (sample, works with any value) less than 10
2. Go to frontend product page
3. In the quantity field, enter quantity greater than 10 by keyboard
4. Click outside the input (any where except +- arrows)
5. The quantity in the field goes back to 5.

ComonSoft avatar May 28 '24 10:05 ComonSoft

Hello @ComonSoft, Some checks were not successful. Can you check that?

Thanks!

paulnoelcholot avatar Jun 11 '24 13:06 paulnoelcholot

Hello @ComonSoft, Some checks were not successful. Can you check that?

Thanks!

Done

ComonSoft avatar Jun 11 '24 14:06 ComonSoft

Hi @ComonSoft! Sorry, but the ESLint check failed, can you fix it please? 😔

boherm avatar Jun 12 '24 16:06 boherm

ESLint

Done

ComonSoft avatar Jun 21 '24 09:06 ComonSoft

Hello @ComonSoft ,

I have the same behavior with and without your PR using PS 8.1.x and PS 9.0x with classic theme. In both cases, there's no reset of the minimal quantity when I click outside of the quantity input. Screen.Recording.2024-06-26.at.15.39.01.mov

Sorry, but the bug is present set the minimal quantity to a value inferior to 10 ;-)

ComonSoft avatar Jun 27 '24 08:06 ComonSoft