Skip to content

Bundled Product - Wishlist console error #4809

Closed
@BenSpace48

Description

@BenSpace48

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

  1. Install Magento from develop branch.
  2. Install the sample data
  3. Ensure the site is using the luma theme (not sure if it also occurs on the blank theme)
  4. Navigate to a bundled product such as sprite-yoga-companion-kit.html
  5. Check the console, you should see add-to-wishlist.js:94 Uncaught TypeError: Cannot read property 'replace' of undefined

Expected result

  1. No errors in the console

Actual result

  1. add-to-wishlist.js:94 Uncaught TypeError: Cannot read property 'replace' of undefined

Screenshot

screen shot 2016-06-01 at 09 22 21

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions