Skip to content

Commit 53a0e8a

Browse files
committed
MC-41853: Related Products are not showing the Correct MAP Price
1 parent f25fc03 commit 53a0e8a

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ define([
4646
gallerySwitchStrategy: 'replace',
4747
tierPriceTemplateSelector: '#tier-prices-template',
4848
tierPriceBlockSelector: '[data-role="tier-price-block"]',
49-
tierPriceTemplate: ''
49+
tierPriceTemplate: '',
50+
selectorProduct: '.product-info-main',
51+
selectorProductPrice: '[data-role=priceBox]'
5052
},
5153

5254
/**
@@ -676,7 +678,9 @@ define([
676678
* @private
677679
*/
678680
_displayRegularPriceBlock: function (optionId) {
679-
var shouldBeShown = true;
681+
var shouldBeShown = true,
682+
$priceBox = this.element.parents(this.options.selectorProduct)
683+
.find(this.options.selectorProductPrice);
680684

681685
_.each(this.options.settings, function (element) {
682686
if (element.value === '') {
@@ -696,7 +700,8 @@ define([
696700
$(document).trigger('updateMsrpPriceBlock',
697701
[
698702
optionId,
699-
this.options.spConfig.optionPrices
703+
this.options.spConfig.optionPrices,
704+
$priceBox
700705
]
701706
);
702707
},

0 commit comments

Comments
 (0)