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 f349c0e commit e9c42d2Copy full SHA for e9c42d2
app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js
@@ -342,8 +342,7 @@ define([
342
343
if (!productId) {
344
// Check individual product.
345
- var product = document.getElementsByName('product')[0];
346
- productId = product ? product.value : undefined;
+ productId = $('[name=product]').val();
347
isInProductView = productId > 0;
348
}
349
0 commit comments