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 82ceb3c commit fae811aCopy full SHA for fae811a
app/code/Magento/Swatches/view/frontend/web/js/configurable-customer-data.js
@@ -8,7 +8,7 @@ require([
8
formSelector: '#product_addtocart_form',
9
swatchSelector: '.swatch-opt'
10
},
11
- swatchWidgetName = 'mage-SwatchRenderer',
+ swatchWidgetName = 'mageSwatchRenderer',
12
widgetInitEvent = 'swatch.initialized',
13
14
/**
@@ -17,6 +17,8 @@ require([
17
updateSwatchOptions = function () {
18
var swatchWidget = $(selectors.swatchSelector).data(swatchWidgetName);
19
20
+ document.body.setAttribute('data-debug', swatchWidget ? 'swatchWidget is not null' : 'swatchWidget is null')
21
+
22
if (!swatchWidget || !swatchWidget._EmulateSelectedByAttributeId) {
23
return;
24
}
0 commit comments