The image gallery is not loading on product detail page getting an error like

Uncaught TypeError: $(...).AddFotoramaVideoEvents is not a function
    at $.<computed>.<computed>.updateBaseImage (swatch-renderer.min.js:50)
    at $.<computed>.<computed>.updateBaseImage (widget.min.js:15)
    at $.<computed>.<computed>._loadMedia (swatch-renderer.min.js:24)
    at $.<computed>.<computed>._loadMedia (widget.min.js:15)
    at $.<computed>.<computed>._OnClick (swatch-renderer.min.js:28)
    at $.<computed>.<computed>._OnClick (widget.min.js:15)
    at HTMLDivElement.<anonymous> (swatch-renderer.min.js:23)
    at HTMLDivElement.dispatch (jquery.min.js:338)
    at HTMLDivElement.elemData.handle (jquery.min.js:311)
    at Object.trigger (jquery.min.js:332)

I followed this solution Magento2: AddFotoramaVideoEvents is not a function on PDP? also. but it does not helped.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.