We would like to add video's using direct mp4 links, that we would like to load using a custom attribute on the productpage gallery.

We know the possibility to display a video on a product gallery using YouTube and Vimeo, but we do not want to upload the video's first to YouTube or Vimeo.

Is there a way to create some custom code, to add a video to the gallery?

How can we achieve this?

1 Answer 1


Of course - there is a way to reach this goal.

I think the easiest way to implement it is use custom attribute.

The plan is like below:

  • add custom attribute with upload field
  • prepare logic to save file on your sever
  • save path to file on server
  • create plugin and inject your custom attribute to mediaGallery
  • add support for mp4 in fotorama gallery

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.