Skip to content

Instantly share code, notes, and snippets.

@Magic-Toolbox
Last active June 7, 2024 18:22
Show Gist options
  • Save Magic-Toolbox/760b38f1632f2ce7c0736aabc3c8da7d to your computer and use it in GitHub Desktop.
Save Magic-Toolbox/760b38f1632f2ce7c0736aabc3c8da7d to your computer and use it in GitHub Desktop.
Magic Zoom Plus gallery combined with YouTube and Vimeo videos
@Pita0613
Copy link

Hello,

I currently adding this solution to our product page to display videos.
There seems to be an issue with mobile view and selecting images.
Is there any other documentation on this?

Thank you,
Ron

@Magic-Toolbox
Copy link
Author

Hello,

I currently adding this solution to our product page to display videos.
There seems to be an issue with mobile view and selecting images.
Is there any other documentation on this?

Please try to change following line:

jQuery('.zoom-gallery .selectors a').on('click touch', function(e) {

changed to:

jQuery('.zoom-gallery .selectors a').on('click touchend', function(e) {

@Pita0613
Copy link

That worked, thank you.

@lesliekirk
Copy link

I'm trying to get the video portion working with Miva Merchant. The basic installation went very well. Do I need to create a Product Custom Field? Do I have to create a thumbnail for the video? The Image Machine usually creates the image thumbnails. Any insights would be grateful.

@ishugurov
Copy link

I'm trying to get the video portion working with Miva Merchant. The basic installation went very well. Do I need to create a Product Custom Field? Do I have to create a thumbnail for the video? The Image Machine usually creates the image thumbnails. Any insights would be grateful.

You have to create a custom field where video URL will be stored. Then some extra code should be created (or existing Magic Zoom Plus code should be updated) so this video automatically adds to the gallery. You can contact Magic Toolbox if you need an assistance with that - https://magictoolbox.com/contact/

@lesliekirk
Copy link

Thank you. I will try reaching out to them again. I sent them an email back in 2021 and never heard back from them.

@macca-droid
Copy link

Hi - is there a method for incorporating native video in to the scroller <video..> as opposed to Youtube/Vimeo?

@ishugurov
Copy link

ishugurov commented Sep 20, 2022

@macca-droid , you can use video tag inside <div data-slide-id="video-..." class="zoom-gallery-slide video-slide"> ... </div>

@macca-droid
Copy link

thanks @ishugurov I think perhaps the problem is I'm combining with Magic Scroll as well - is it posible to have video in a Magic Zoom/Magic Scroll combination?

@ishugurov
Copy link

thanks @ishugurov I think perhaps the problem is I'm combining with Magic Scroll as well - is it posible to have video in a Magic Zoom/Magic Scroll combination?

Yes, it's possible. Code looks the same but tiny thumbnails list should be wrapped with <div class="MagicScroll">...</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment