1

I have created product attribute name is video. But, I want to display video in product image gallery in product page.

1
  • Can you provide some things you have tried? Have you tried? Commented Apr 19, 2018 at 19:18

1 Answer 1

0

By using , you can get that data & use this code in your view.phtml file

<iframe width="100%" height="auto" src="<?php echo $_product-> 
 getData('video'); ?>" frameborder="1" allowfullscreen></iframe>

Like this :

enter image description here

5
  • thanks for helping ... but where to add this code in view.phtml file
    – pramod24
    Commented Apr 19, 2018 at 18:30
  • after getGalleryImages() foreach loop Commented Apr 19, 2018 at 18:37
  • Please check image you'll get idea where you need to add. Commented Apr 19, 2018 at 18:39
  • My pleasure @pramod24. please accept and upvote answer. So, other user can use this solution :) Commented Apr 19, 2018 at 18:48
  • let me know..if it's working or not..? if it's useful then please upvote & accept answer. so, it's useful to other user also @Pramod24 Commented Apr 20, 2018 at 3:26

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.