-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Magento 2.1.2] Wrong error message in cart after entering invalid discount code with product stock qty = 1 (only for simple variant products) #7230
Comments
Hi, thank you for your reporting. Internal ticket is created MAGETWO-60352 |
Ok the bug is reported, but when you fix it? |
Unfortunately, we don't have time estimates for this bugfix now |
Thank you, i hope you find the time to fix it asap. |
Do you know if this bug is fixed on 2.1.3? |
Can confirm the problem still happens in 2.1.3. |
It seems to be if there is not 2 * the number of items in your cart in stock, then the error happens. probably to do with the discount function copying the cart or something. |
Hi I have a similar issue, and it seems related. Now I add another product. It seems that magento will perform several qty check for items, and each loop will add double qty.
Then magento will call "sales_quote_item_qty_set_after" event and check for quantities in
So for example : Now when I a product2 with quantity whatever (eg: 1), if I do some logging in QuantityValidator::validate (around line 64) the first time the qty of item1 is 6, and after it will be 12... I think Magento should not double check, and moreover should setQty instead of add qty to existing item qty. Hope this will help to track down this bug... |
@veloraven |
Any feedback from the Magento team on this one yet? |
I've found a configuration work-around for this bug. In Stores > Configuration, Product Stock Options: Backorder 'allow qty below 0'. As long as you are still managing stock and hiding out of stock products, the user will still be able to add products with 1+ stock to basket and the promo code issue wont present itself. Once the product reaches zero stock it will go to out of stock and not be available as usual. Its a plaster though which has potential for a user to add a higher quantity than you have in stock, so we still need a core update from Mage. |
@tomdollarmpd Sure we need that magento team fix it asap. |
MAGETWO-69029: Remove obsolete link "Show more" on Dashboard page on Advance Reporting block MAGETWO-60352: [Github] Wrong error message in cart after entering invalid discount code #7230 MAGETWO-66510: Javascript error prevents adding/removing categories from existing catalog price rule condition MAGETWO-59207: Checkbox return to stock doesn't work if Automatically Return Credit Memo Item to Stock Yes MAGETWO-70201: Update Readme for Analytics modules. Final MAGETWO-57835: [Github] Cannot save customer dob attribute if admin interface locale is en_GB #6323
@LucScu, thank you for your report. |
…r entering invalid discount code #7230 - for 2.1
…r entering invalid discount code #7230 - for 2.1
…r entering invalid discount code #7230 - for 2.1
…r entering invalid discount code #7230 - for 2.1
…r entering invalid discount code #7230 - for 2.1
…r entering invalid discount code #7230 - for 2.1
…r entering invalid discount code #7230 - for 2.1
…r entering invalid discount code #7230 - for 2.1
Tested on last magento 2 version 2.1.2 and Luma sample data.
Preconditions
With sample data i used
http://luma.kamiceria.com/tiffany-fitness-tee.html
with blue color and xs size (sku WS09-XS-Blue)
Steps to reproduce
Expected result
'The coupon code "xxx" is not valid.'
Actual result
'The` coupon code "xxx" is not valid.' ->OK
'We don't have as many "Tiffany Fitness Tee" as you requested.' ->BUG
The text was updated successfully, but these errors were encountered: