Skip to content

Commit f32e362

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-53139: Price of last customizable options add to price on product page
1 parent 2b11da1 commit f32e362

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ define([
7676
$(this.options.priceHolderSelector).trigger('updatePrice', changes);
7777
},
7878

79-
8079
/**
8180
* Helper to fix issue with option nodes:
8281
* - you can't place any html in option ->
@@ -174,7 +173,10 @@ define([
174173
break;
175174

176175
case 'radio':
177-
176+
if (element.is(':checked')) {
177+
changes[optionHash] = optionConfig[optionValue] && optionConfig[optionValue].prices || {};
178+
}
179+
break;
178180
case 'select-one':
179181
changes[optionHash] = optionConfig[optionValue] && optionConfig[optionValue].prices || {};
180182
break;

0 commit comments

Comments
 (0)