Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix selection of configurable attributes not propagating #123

Merged
merged 1 commit into from
Sep 6, 2021

Conversation

leeroybrun
Copy link
Contributor

@leeroybrun leeroybrun commented Sep 5, 2021

When selecting the product's options (for configurable products with no swatches), we should then dispatch a "change" and "input" events.
This is implemented here in Puppeteer : https://github.com/puppeteer/puppeteer/blob/dd470c7a226a8422a938a7b0fffa58ffc6b78512/src/common/JSHandle.ts#L597
You can also find more info here : puppeteer/puppeteer#613 (comment)

When a product has multiple attributes, we need to select the first attribute option for Magento to fill the other attributes' options. If the "change" event is not fired, the next attribute's options are not loaded, and so we cannot select them and we cannot add the product to the cart.

When selecting the product's options (for configurable products with no swatches), we should then dispatch a "change" and "input" events.
This is implemented here in Puppeteer : https://github.com/puppeteer/puppeteer/blob/dd470c7a226a8422a938a7b0fffa58ffc6b78512/src/common/JSHandle.ts#L597
You can also find more info here : puppeteer/puppeteer#613 (comment)
@leeroybrun leeroybrun changed the title Fix selection of super attributes not propagating Fix selection of configurable attributes not propagating Sep 5, 2021
@krzksz krzksz merged commit c8da94a into magesuite:master Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants