Skip to content

Commit fae811a

Browse files
committed
ACP2E-891: Edit cart line item configurable product failed to Pre-select Production Option in 2.4.4
- Fixed the build failure.
1 parent 82ceb3c commit fae811a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Swatches/view/frontend/web/js/configurable-customer-data.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require([
88
formSelector: '#product_addtocart_form',
99
swatchSelector: '.swatch-opt'
1010
},
11-
swatchWidgetName = 'mage-SwatchRenderer',
11+
swatchWidgetName = 'mageSwatchRenderer',
1212
widgetInitEvent = 'swatch.initialized',
1313

1414
/**
@@ -17,6 +17,8 @@ require([
1717
updateSwatchOptions = function () {
1818
var swatchWidget = $(selectors.swatchSelector).data(swatchWidgetName);
1919

20+
document.body.setAttribute('data-debug', swatchWidget ? 'swatchWidget is not null' : 'swatchWidget is null')
21+
2022
if (!swatchWidget || !swatchWidget._EmulateSelectedByAttributeId) {
2123
return;
2224
}

0 commit comments

Comments
 (0)