Skip to content

Commit 8e132a5

Browse files
MC-10973: Simple product with MAP assigned to configurable should displays the same way as products with special price
- Fix static tests.
1 parent ff137a0 commit 8e132a5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/code/Magento/ConfigurableProduct/Model/Product/Type/Configurable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* @SuppressWarnings(PHPMD.TooManyFields)
2525
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
2626
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
27+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
2728
* @api
2829
* @since 100.0.2
2930
*/

app/code/Magento/Msrp/view/base/web/js/msrp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ define([
317317
msrpPrice = prices[priceIndex].msrpPrice.amount;
318318
finalPrice = prices[priceIndex].finalPrice.amount;
319319

320-
if(msrpPrice === null || msrpPrice <= finalPrice) {
320+
if (msrpPrice === null || msrpPrice <= finalPrice) {
321321
this.updateNonMsrpPrice(priceUtils.formatPrice(finalPrice));
322322
} else {
323323
this.updateMsrpPrice(

app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ define([
523523
label = this.label ? this.label : '';
524524
attr =
525525
' id="' + controlId + '-item-' + id + '"' +
526-
' index="' + index +'"' +
526+
' index="' + index + '"' +
527527
' aria-checked="false"' +
528528
' aria-describedby="' + controlId + '"' +
529529
' tabindex="0"' +
@@ -748,7 +748,7 @@ define([
748748

749749
$(document).trigger('updateMsrpPriceBlock',
750750
[
751-
parseInt($this.attr('index')) + 1,
751+
parseInt($this.attr('index'), 10) + 1,
752752
$widget.options.jsonConfig.optionPrices
753753
]);
754754

0 commit comments

Comments
 (0)