Skip to content

[Backport 2.2] Fix for displaying a negative price for a custom option. #15202

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

Merged
merged 1 commit into from
May 16, 2018
Merged

[Backport 2.2] Fix for displaying a negative price for a custom option. #15202

merged 1 commit into from
May 16, 2018

Conversation

dverkade
Copy link
Member

@dverkade dverkade commented May 14, 2018

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
@dverkade dverkade changed the title [Backport] Fix for displaying a negative price for a custom option. [Backport 2.2] Fix for displaying a negative price for a custom option. May 14, 2018
@magento-engcom-team magento-engcom-team added this to the May 2018 milestone May 14, 2018
@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.2.5 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