Skip to content

Commit 0a812eb

Browse files
author
Olha Nakonechna
committed
MAGETWO-53135: [GITHUB] Prices of related products on PDP changes according to product custom options. #4588
1 parent 3278cd7 commit 0a812eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Catalog/view/frontend/templates/product/view/form.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
'Magento_Catalog/js/price-box'
4444
], function($){
4545
var dataPriceBoxSelector = '[data-role=priceBox]',
46-
dataProductIdSelector = '[data-product-id=<?php echo $block->escapeHtml($_product->getId());?>]',
46+
dataProductIdSelector = '[data-product-id=<?php echo $block->escapeHtml($_product->getId())?>]',
4747
priceBoxes = $(dataPriceBoxSelector + dataProductIdSelector);
4848

4949
priceBoxes = priceBoxes.filter(function(index, elem){

app/code/Magento/Catalog/view/frontend/templates/product/view/options.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"priceOptions": {
1919
"optionConfig": <?php /* @escapeNotVerified */ echo $block->getJsonConfig()?>,
2020
"controlContainer": ".field",
21-
"priceHolderSelector": "[data-product-id='<?php echo $_productId?>'][data-role=priceBox]"
21+
"priceHolderSelector": "[data-product-id='<?php echo /* @noEscape */ $_productId?>'][data-role=priceBox]"
2222
}
2323
}
2424
}

0 commit comments

Comments
 (0)