Closed
Description
I've noticed this error in the console when viewing a bundled products. I can still add the product to wishlist so it doesn't appear to be a big problem.
This is on Magento 2.0.5 and it's a site using Luma without any customisation (it's a demo site). It's also using sample data so you should be able to replicate by going by loading the Luma theme and sample data and going to http://URL-HERE.COM/sprite-yoga-companion-kit.html
Apparently it's this line causing the problem:
elementName = $(element).attr('id').replace(/[^_]+/, 'options').replace(/_(\d+)/g, '[$1]'),
Steps to reproduce
- Install Magento from
develop
branch. - Install the sample data
- Ensure the site is using the luma theme (not sure if it also occurs on the blank theme)
- Navigate to a bundled product such as sprite-yoga-companion-kit.html
- Check the console, you should see
add-to-wishlist.js:94 Uncaught TypeError: Cannot read property 'replace' of undefined
Expected result
- No errors in the console
Actual result
add-to-wishlist.js:94 Uncaught TypeError: Cannot read property 'replace' of undefined
Screenshot
Metadata
Metadata
Assignees
Labels
No labels