image

Video at product gallery inside product detail page is not working

Video at product gallery inside product detail page is not working, however, it is working from admin panel but on product view it is showing only video thumbnail.

Fotorama, when checking for video data, is looking for the field “video” but Magento is providing “videoUrl”.

– Maybe it is an issue of Fotorama. When Fotorama checking for video data is looking for the field “video” but Magento is providing “videoUrl”.

– Issues can be found in these files:-

var video = findVideoId(dataFrame.video, true);

When I edited the cached file to put in some console logs, I found that dataFrame did NOT contain the field  “videoUrl”.

– Please check below files:-

1) My Temporary Fix In This File:

/vendor/magento/module-product-video/view/frontend/web/js/fotorama-add-video-events.js

Copy to Clipboard

2) /vendor/magento/module-configurable-product/Block/Plugin/Product/Media/Gallery.php

Copy to Clipboard

3)  /vendor/magento/module-configurable-product/Block/Product/View/Type/Configurable.php

Copy to Clipboard

4)/vendor/magento/module-catalog/Block/Product/View/Gallery.php

Copy to Clipboard
Published On: January 7th, 2021 / Categories: Magento / By /

Let’s Make Things Happen

Transforming your ideas into reality is our expertise. Share your vision without hesitation, and let our skilled team bring it to life.

“Akshar Group Technologies did such a great job at resolving the initial problem that the partnership expanded to include further development and is still ongoing. Diligent and committed, the team goes above and beyond to deliver their work promptly. They have an extensive knowledge base.”

Justin Delp

Digital Engage, US

By submitting my data I agree to be contacted