Skip to content

Commit fe147c4

Browse files
ENGCOM-1552: Fix for displaying a negative price for a custom option. #14975
- Merge Pull Request #14975 from dverkade/magento2:2.3-Fix-negative-value-for-custom-option - Merged commits: 1. 3a12905
2 parents 4832a75 + 3a12905 commit fe147c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Catalog/view/base/web/js/price-options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ define([
2020
optionConfig: {},
2121
optionHandlers: {},
2222
optionTemplate: '<%= data.label %>' +
23-
'<% if (data.finalPrice.value) { %>' +
23+
'<% if (data.finalPrice.value > 0) { %>' +
2424
' +<%- data.finalPrice.formatted %>' +
25+
'<% } else if (data.finalPrice.value < 0) { %>' +
26+
' <%- data.finalPrice.formatted %>' +
2527
'<% } %>',
2628
controlContainer: 'dd'
2729
};

0 commit comments

Comments
 (0)