Skip to content

Quote breaks if custom option deleted #6627

@alexgoodey

Description

@alexgoodey

If a product is setup with a custom option, the product is added to the cart but then subsequently the custom option is removed from the product then the customers cart is broken and they view there cart, add products, checkout etc...

Preconditions

  1. Magento CE 2.1.*
  2. A product with a custom option (drop down)
  3. A registered customer

Steps to reproduce

  1. Login as the registered customer
  2. Add the product to the cart, selecting a value for the custom option
  3. Login as an admin user and remove the custom option from the product and save
  4. Try to proceed to the basket as the customer, or add a new product, or even just logout

Expected result

  1. The customers quote is updated with the options removed from the quote item and the customer can continue as normal

Actual result

  1. An error is thrown (depending on what you are trying to do)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions