Embedded 360 Not Working

Are you using WebRotate 360 Product Viewer for Magento?
magecoder007
Posts: 2
Joined: Tue Mar 16, 2021 3:58 am
Contact:

Embedded 360 Not Working

Postby magecoder007 » Tue Mar 16, 2021 4:10 am

Hi there,

I have the same issue, embedded 360 views working sometimes and after reloading it's not working,
I have installed Magento 2 module.

Here is the link to check
https://heroows.com/spielturm-fast-heroows.html

Magento version - 2.3.4
Attachments
screenshot-nimbus-capture-2021.03.16-17_35_15.png
Please screenshot comment

WebSupport
Posts: 1112
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Embedded 360 Not Working

Postby WebSupport » Tue Mar 16, 2021 8:51 am

Hi, thanks for the details.

The issue is due to the duplicate jQuery script loading after our imagerotator script as per attached screenshot. It overrides some of global jQuery space we're using with hotspots. Please remove the second jQuery and it will always work. Alternatively you may remove the hotspot if you are not planning to use them, which should also resolve the issue.

PS: we will move this to a separate Magento thread in a couple of days.

magento2-jquery-dup.png

magecoder007
Posts: 2
Joined: Tue Mar 16, 2021 3:58 am
Contact:

Re: Embedded 360 Not Working

Postby magecoder007 » Thu Mar 18, 2021 2:26 am

Hi,
Thanks for the reply.
I did check the second jquery file which is including the after image rotator js file. but that jQuery just has patch applied and it's coming default Magento 2 version.

Can you please guide how to resolve it?
Thanks in advance.

WebSupport
Posts: 1112
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Embedded 360 Not Working

Postby WebSupport » Thu Mar 18, 2021 9:14 am

Something overwrites jQuery name space still I think after that first jQuery is loaded. Can't say what unfortunately..

I have a feeling though it would work if your custom integration was not requiring jquery & imagerotator right away so it's rather done past that time when the namespace has been overwritten. You can try some mixin that is loaded closer to the end of the chain, like we do in the default module implementation (i.e load your custom require in some kind of a custom hook at the time when this gallery mixin is loaded for example):

Code: Select all

    config: {
        mixins: {
            'mage/gallery/gallery': {
                'WebRotate360_ProductViewerStandard/wr360hook': true
            }
        },
    },

WebSupport
Posts: 1112
Joined: Thu Aug 23, 2012 11:35 am
Location: Pasadena, CA
Contact:

Re: Embedded 360 Not Working

Postby WebSupport » Mon Mar 29, 2021 10:42 pm

We have a fix for this in the viewer code (removed using global JQuery.fn space in hotspots).

Please confirm that you need it still?


Return to “Magento Integration”