How to add product video at product-page?

enter image description here

  1. Create one attribute under admin panel > catalog > attributes > create attribute on the name of video
  2. By using , you can get that data
<iframe width="100%" height="auto" src="<?php echo $_product-> 
 getData('video'); ?>" frameborder="1" allowfullscreen></iframe>
  1. You have to use this code at your view.phtml file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy