Magento2: configurable products throw javascript error on click


February 03, 2017 at 08:54
Magento2

The following error was thrown when clicking on a configurable product option:
Uncaught TypeError: Cannot read property 'updateData' of undefined
at $.(anonymous function).(anonymous function).updateBaseImage (http://domain.com/pub/static/frontend/Vendor/theme/de_DE/Magento_Swatches/js/swatch-renderer.js:920:28)
Googling this problem quickly returns a hint that the parent classes must have the column and main classes. In this case, this alone wasn't enough, the important information is, that the .column.main div must encapsule both the gallery and the text-swatch.

Hinterlasse einen Kommentar:
Search