I want to get product video in product list page(category page) for that i am trying following code . but i am getting blank values. my code is:
$_product->getVideo();
Please guide me for get you tube video url.
I tried code but that works in product listing page but not worked in product details page.
Code what i have tried :
<?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; ?>
Best Answer
Try this--