Toggle Nav
My Cart 0

How to add product video in magento 2?

How to add product video in magento 2?

How to add product video in magento 2?

Have you read our previous blog post? Not yet, Read now: Configuration of Magento 2 Recently Viewed/Compared Products. Also, share it with your friends and co-workers.

In this post, we’ll walk you through a Product Video.

If your Magento 2 product video is not working, or do you want to know the solution? Here we go,

You must first receive an API Key from your Google account and enter it into your store's configuration to add a product video. The product can then include a link to the video.

Here are a few steps:

  1. Create your YouTube API Key
  2. Link Magento 2 YouTube API key
  3. Integrate Link YouTube Video to Magento 2 product videos

Let's get a brief knowledge.

Steps for Product video:

Create your YouTube API Key:
  • Step 1: Visit the Google Developers Console after logging into your Google account.
  • Step 2: Search the field at the top, enter YouTube Data API v3 and click the search icon.
  • Step 3: Make sure it is enabled when the API page displays.
  • Step 4: Go to the left panel, and select Credentials.
  • Step 5: You can choose from the following options depending on whether you have credentials:
    1. Copy the key into the API keys table if you already have the required credentials.
    2. Click Create Credentials at the top to create the required credentials if you don't already have them for this API. Then, follow the on-screen instructions. Copy the API key from Get your credentials, then click Done.
  • Step 6: To the clipboard, copy the API key.
  • Step 7: To verify that the API key has been restricted to the appropriate referrers, click the Edit icon on the right and configure the limits.
  • Step 8: Please wait before the key is produced before copying it to the clipboard.
  • In the next step, The key will paste into the setup of your store.

Link Magento 2 YouTube API key:
  • Step 1: Log in with your Admin panel
  • Step 2: Check the sidebar and click on the STORES option.
  • Step 3: Go to the Settings > Configuration
  • Step 4: Select the CATALOG tab to click on the Catalog and expand the Product Video section and paste your YouTube API key
  • Step 5: Hit the Save Config button.

Please note there are a few additional options in general. You may choose whether the Autostart base video, Show related video when completed, or repeat itself by setting Yes with Auto restart.

product video

Integrate Link YouTube Video to Magento 2 product videos:
  • Step 1: Check the sidebar and click the CATALOG
  • Step 2: Go to the Products in the edit mode.
  • Step 3: Then click the Images and Videos section, and click the Add video.
  • add video
  • Step 4: Put the URL of the YouTube or Vimeo video.
  • Step 5: When you're ready for comments on the API key or video, click outside the field. If everything is in order, YouTube displays the video's basic details.
  • Step 6: Enter the video's Title and Description.
  • Step 7: Preview Image: Browse the image and select the file.
  • Step 8: Get Video Information: If you prefer to use the video metadata, click on it.
  • Step 9: Role: Select the checkbox next to each applicable Role to learn how the video for featured in the store.
  1. Base
  2. Small
  3. Swatch
  4. Thumbnail
  5. Hide from Product Page

Hit the Save, and you're Done!

New video

Give the article rate and let us know if you want more articles like this!

August 9, 2022
Did you like this post?
0
0