I have imported products from another Magento webshop, and both webshops are using Magento 2.3.5.
On the frontend, specifically on the configurable product detail page, the prices are not updating in (Default) 1 of 3 stores when we change the variant. However, the other two stores are functioning correctly.
This issue only occurs with the newly imported products, while existing configurable products display the correct price when the variant is changed in any store. Interestingly, even though the correct price is added to the cart, it is not being displayed on the page.
Following Error is showing under console on the store where it is not working
- pub/static/version/frontend/Alothemes/spozy6/sv_SE/Magento_ConfigurableProduct/js/configurable.min.js 19
configurable.min.js:19 Uncaught TypeError: Cannot read properties of undefined (reading 'length')
_clearSelect: function(element) {
var i;
for (i = element.options.length - 1; i >= 0; i--) {
element.remove(i);
}
},
test-products-new.html:65 Uncaught TypeError: Cannot read properties of undefined (reading 'options')
var product_id_index = jQuery('[data-role=swatch- options]').data('mageSwatchRenderer').options.jsonConfig.index; var found_ids = [];