Skip to content

Conversation

@dverkade
Copy link
Member

Original PR: #14975

Fix for displaying a negative price for a custom option.

Description

Currently a negative price is displayed as +-€ 5,51 for instance. By changing the template to check of the value is actually positive, a negative value will be displayed as -€ 5,51 and a positive value will be displayed as +€ 5,51. When the value is exactly 0 nothing will be displayed after the label.

image
Screenshot displaying the current situation.

Manual testing scenarios

  1. Have a product with a negative price as a custom option
  2. Price in the dropdown will be displayed as -€ 5,51

…negative price is displayed as +- 5.00 for instance. By changing the template to check of the value is actually positive a negative value will be displayed as - 5.00 and a positive value will be displayed as + 5.00
@VladimirZaets
Copy link
Contributor

Hi, @dverkade, I took your PR into processing, thank you for collaboration.

@magento-engcom-team
Copy link
Contributor

Hi @dverkade. Thank you for your contribution.
Changes from your Pull Request will be available with the upcoming 2.1.15 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants