Skip to content

[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

@LucScu

Description

@LucScu

Tested on last magento 2 version 2.1.2 and Luma sample data.

Preconditions

  1. Set a simple variant product qty to 1.

    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

  1. Add above product WS09-XS-Blue to cart
  2. Go to cart
  3. Add invalid discount code like 'xxx'

Expected result

  1. Magento shows error message

    'The coupon code "xxx" is not valid.'

Actual result

  1. Magento shows error messages

    'The` coupon code "xxx" is not valid.' ->OK

    'We don't have as many "Tiffany Fitness Tee" as you requested.' ->BUG

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions