Hot answers tagged

6

I ended up doing it with the risky inserts directly into the tables. the tables involved are (in this order) catalog_product_entity_media_gallery catalog_product_entity_media_gallery_value catalog_product_entity_media_gallery_value_to_entity catalog_product_entity_media_gallery_value_video Pre-explanations: This should happen inside one class. This ...


4

If anyone is struggling with this, it's fixed in Magento 2.1.8 EE: http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.8EE.html#web-api and Magento 2.1.8 CE: http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.8CE.html#web-api


3

You can follow these steps to achieve the above scenario 1- Create a custom variable from Admin-> System-> Other Settings-> Custom Variable Then save the configurations. 2- Create a block and add an iframe embed code. Add a custom variable that you want to link.


3

You can add video to product page in Magento 2. To do this follow this tutorial. Hope this may help you.


3

Uploading video for extensions in addition to the images is available for older or existing Magento partners (all levels) since Magento Connect update in 2012. See part of the partners email newsletter: Please contact your partner manager do get detailed instructions regarding the video size, lengths and quality standards.


3

Go to Stores > Configuration > Catalog > Product Video (where you entered the YouTube API key). There should be a field called Autostart base video. Set that to Yes.


3

You simple add your embedded code in custom_popup div. <div id="custom_popup" style="display:none;"> <div class="youtube-video"> <iframe width="854" height="480" src="https://www.youtube.com/embed/UKlkIzD-Yj8" frameborder="0" allowfullscreen></iframe> </div> <?php echo $block->getLayout()->...


2

you can use the rest api POST /V1/products/{sku}/media { "entry": { "id": 0, "mediaType": "string", "label": "string", "position": 0, "disabled": true, "types": [ "string" ], "extensionAttributes": { "videoContent": { "mediaType": "string", "videoProvider": "string", "videoUrl": "string", ...


2

I don't like to overrule Marius' opinion because the answer he's given is really excellent & actually works! However, if you or your company isn't so inclined to run direct SQL queries like that I'd suggest something more like this, using Magento 2's API: $data = [ 'entry' => [ 'id' => null, 'media_type' => 'external-video', ...


2

You can add a video by edit some code in below plugin https://github.com/experius/Magento-2-Module-Experius-WysiwygDownloads You need to add below code in di.xml file, file location etc/adminhtml/di.xml <item name="mp4" xsi:type="string">video/mp4</item> For video tag, you need to add below code in this file Controller/...


1

It's not recommended to host videos on your server as it may consume resources and large storage from your server, this is why even large ecommerce depends on 3rd party video providers to embed required videos. Youtube embedded videos give you the ability to style the embedded video so that you can style it according to your website design However, if you ...


1

Hey You can use to upload video anywhere in your magento site Use below Code: <iframe width="500" height="300" src="https://www.youtube.com/watch?v=5fzb-qLL2wo" frameborder="0" allowfullscreen></iframe>


1

create a block in magento admin use below code. <video id="myVideo" width="100%" height="300px" autoplay="autoplay" muted="" loop="loop"> <source src="{{view url="images/banner.mp4"}}" type="video/mp4" /> </video>


1

Try this-- <?php if($_product->getVideo()): ?>` <iframe width="560" height="315" src="http://www.youtube.com/embed/<?php echo $_product->getVideo() ?>" frameborder="0" allowfullscreen></iframe> <?php endif; ?>


1

You can manage by your media folder you have to make a folder for video and place there. and add media path to your static block. <source src="{{media url="video/my-video.mp4"}}" type="video/mp4" />


1

If you're looking to upload product video then there is one more method do it via YouTube. These are the steps which you have to follow: Upload your video to YouTube. Go to google developer console and generate YouTube Data API. Then add the generated Youtube API key to your Magento 2 store by going to STORES --> Configuration. At last, just add Video URL (...


1

You can add mp4 for example that way: Copy vendor/magento/module-cms/etc/di.xml to yourvendor/YourTheme/Magento_Cms/etc/di.xml and add this to media_allowed <item name="mp4" xsi:type="number">1</item>


1

Write code like that call preg_replace("/\s*[a-zA-Z\/\/:\.]*youtube.com\/watch\?v=([a-zA-Z0-9\-_]+)([a-zA-Z0-9\/\*\-\_\?\&\;\%\=\.]*)/i","<iframe width=\"420\" height=\"315\" src=\"//www.youtube.com/embed/$1\" frameborder=\"0\" allowfullscreen></iframe>", $image->getVideoUrl());


1

Magento does not provide video in product page. You can add in description or create new attribute. Check here http://www.demagento.com/how-to-add-magento-product-video-programmatically/


1

As an alternative solution, if you don't want to use YouTube or Vimeo, upload file directly in to your server, and using browser native html video tag, you can insert video manually. Just simple example bellow, inside product page description. <video width="480" controls> <source src="/pub/media/video/your-video-file.mp4" type="video/mp4"> <...


1

download your extension and check if extension layout and phtml files were in the rwd/default folder or in the default/default folder, if its in default/default folder than copy into your Yourpackage/Yourtheme folder and do same as for skin folder to . Hope this will help you


1

You can add a product video without using an extension. You can do so by editing some files programmatically as explained below. Create “video” text input attribute. Add it to appropriate attribute set and reindex your data. Go to the following file. app/design/frontend/yourpackage/yourtheme/template/catalog/product/view.phtml Find the following code in ...


1

there is a bug in magento2 v. 2.1 and still in 2.1.2. There is a workaround: Bugtracking and solution Its not working for me but it work for some other ppl. I cant set all xml construction of my catalog_product_view in the default theme. Thats why I cant accept that i have to backstep to the default magento theme to fix it.


1

You will need video player to run the video, have you looked into this https://www.apptha.com/category/extension/magento/hd-flv-player-magento And you can use this http://magento-flv-player.soft112.com/ I didn't use it myself but you free to give it a try


1

Just Cut the code and pasted it before the code which displayed the image. Now the video is displayed in first position.


1

Just google for free magento video extension The question is, how to import the videos afterwards, but I'm quite sure, that the videos are an attribute, therefore you can just write them into the eav_table for videos I would guess.


Only top voted, non community-wiki answers of a minimum length are eligible