[Issue] Fix missing video when advanced js bundling used #32501
Labels
Component: ProductVideo
Event: Adobe Summit Hackathon
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P2
A defect with this priority could have functionality issues which are not to expectations.
Progress: done
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
Projects
This issue is automatically created based on existing pull request: #32499: Fix missing video when advanced js bundling used
Description (*)
This PR fixes issue when a video is missing in the product gallery when advanced JS bundling is enabled and used.
This happened because the event
gallery:loaded
was already triggered before this code was executed.In order to fix the issue I looked how with this event we working in different places, so I did same in this piece of code as well.
magento2/app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js
Lines 106 to 108 in fbfac3e
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Actual result: (before this PR)
❌ No video appeared, just image shown
Expected result: (after this PR)
✔ Video should appear in gallery
Questions or comments
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: