How to Add a Video to a Product in Magento 2

How to Add a Video to a Product in Magento 2

In order to add a video content to a product in Magento 1.x, you needed to create a separate module or an attribute. In Magento 2 it is much easier. This functionality has been added to a default functions set.


Let’s take a look into how to add a video from YouTube service.

At first place you should generate API in order to use YouTube functions. Open your YouTube account following this link.

How to Add a Video to a Product in Magento 2.0

Let’s create a new project.

How to Add a Video to a Product in Magento 2.0

Enter the API section.

How to Add a Video to a Product in Magento 2.0

Select API Youtube and activate it.

How to Add a Video to a Product in Magento 2.0

How to Add a Video to a Product in Magento 2.0

Generate a key.

How to Add a Video to a Product in Magento 2.0

How to Add a Video to a Product in Magento 2.0

How to Add a Video to a Product in Magento 2.0

After that, open Magento admin panel and save the key.

How to Add a Video to a Product in Magento 2.0

Now you can add YouTube video content for your products. Enter product page in the admin panel and select Images and Videos.

How to Add a Video to a Product in Magento 2.0

And enter the link to the video content that you would like to add.

How to Add a Video to a Product in Magento 2.0

That’s it!



3 comments

Post a new comment

top
BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *