1

I have created an API key using [link][1]

[1]: https://console.developers.google.com and created a new project and enable API anfter that save that API in Store > configuration > catalog > Product Video and save it

After that I insert video link to my product using but it is not saving showing error Could not get preview image information. Please check your connection and try again.

Please help

2

3 Answers 3

2

I resolved this by removing the product.info.media container from my child theme Catalog_product_view.xml layout:

<container name="product.info.media" htmlTag="div" htmlClass="product media" after="product.info.main">

My project didn't require any structural changes to the product.info.media section at all but I had copied it across (which was unnecessary) when setting up my child theme layout to overwrite the default Magento one, so removing the container from my layout fixed this.

May require some testing if you need that container to stay in your layout.

1

Try using the Youtube ID in stead of the entire url, the Youtube ID is the Id that is displayed in the URL after v=

-3

I just got the issue it's a theming issue. I had copied all the layout xml of catalog layout which is conflicting with Youtube video functionality.

3
  • which layout.xml are you using ? share the folder where the template for this is in Commented Sep 4, 2017 at 13:07
  • 1
    This isn't helpful or explanatory. Commented Nov 23, 2018 at 10:54
  • please share with xml file to be updated. Commented Dec 28, 2022 at 8:08

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.