Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to upload Youtube Videos as Product Videos in Magento 2?

To Upload Youtube Videos as product videos in Magento 2, you need to follow three steps:

    • Step 1: Get your Youtube API key
    • Step 2: Configure Magento to use the Youtube API
    • Step 3: Link the video to product

Step 1: Get your YouTube API Key

Log in to your Google account, and visit the Google Developers Console. Then, follow these:

    • Click on YouTube Data API
    • Enable the API and Click on Credentials on left and choose API Key   After creation of API Key, copy it.

Step 2: Configure Magento 2

  • Open Admin Panel and go to Stores->Setting->Configuration
  • In the panel, under Catalog, choose Catalog
  • Expand the Product Video section, paste Youtube API key into the required field.
  • Click Save Config
  • Go to the terminal where your Magento directory is present, and run:

    php bin/magento indexer:reindex

  • Go to Cache Management and Refresh Cache

Step 3: Linking Video

    • Go in Product->Catalog->Select the product
    • In product page, navigate to Add Images and Videos
    • Click on Add Video
    • Fill the information and Click on Save, and your video will get add to that product page

On Success:

*Note: You should ENABLE API before using it, API is enabled by creating new project and then clicking ENABLE

The post How to upload Youtube Videos as Product Videos in Magento 2? appeared first on HumCommerce.



This post first appeared on Magento 2 Ecommerce, please read the originial post: here

Share the post

How to upload Youtube Videos as Product Videos in Magento 2?

×

Subscribe to Magento 2 Ecommerce

Get updates delivered right to your inbox!

Thank you for your subscription

×