We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c6a0f9 commit 9888ab4Copy full SHA for 9888ab4
app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js
@@ -675,10 +675,12 @@ define([
675
_getSimpleProductId: function (element) {
676
// TODO: Rewrite algorithm. It should return ID of
677
// simple product based on selected options.
678
+ var allOptions,
679
+ value,
680
+ config;
681
if (element.config) {
- var allOptions = element.config.options,
- value = element.value,
- config;
682
+ allOptions = element.config.options;
683
+ value = element.value;
684
685
config = _.filter(allOptions, function (option) {
686
return option.id === value;
0 commit comments