Skip to content

Unable to set negative custom option fixed price in admin view. #7333

@WaterSlide

Description

@WaterSlide

In versions 2.1.1 and 2.1.2, setting custom options for a product with fix price settings will not allow a negative value. I'm not sure if this is a simple ui problem or if there is a validator issue. Either way, this was always an option in Magento 1.x in which you can set discounts on an item via custom option. Uploading values via CSV works correctly, however making admin view changes for given product will fail validation via negative values.

Preconditions

  1. Magento 2.1.2
  2. PHP 7

Steps to reproduce

  1. Freshly install Magento.
  2. Create product with a custom option.
  3. Attempt to place a negative value in the custom option price input.

Expected result

  1. Item validates and clients using the custom option allows a price reduction.

Actual result

  1. Cannot save item. Validator fails.

capture

Metadata

Metadata

Assignees

Labels

Component: CatalogEvent: distributed-cdDistributed Contribution DayFixed in 2.2.xThe issue has been fixed in 2.2 release lineIssue: 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 developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions