Skip to content

Commit 9888ab4

Browse files
committed
ACP2E-1764: Configurable product price is not changed when option is selected
- Fixed the static test failure.
1 parent 9c6a0f9 commit 9888ab4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -675,10 +675,12 @@ define([
675675
_getSimpleProductId: function (element) {
676676
// TODO: Rewrite algorithm. It should return ID of
677677
// simple product based on selected options.
678+
var allOptions,
679+
value,
680+
config;
678681
if (element.config) {
679-
var allOptions = element.config.options,
680-
value = element.value,
681-
config;
682+
allOptions = element.config.options;
683+
value = element.value;
682684

683685
config = _.filter(allOptions, function (option) {
684686
return option.id === value;

0 commit comments

Comments
 (0)