I want to get product video url in product list page.I am try below code but its not works for my end

<?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; ?>

Try to use the below code :

 <iframe width="640" height="480" src="<?php echo $image->getVideoUrl(); ?>" frameborder="0" allowfullscreen></iframe>
  • its not working – Devidas Feb 28 '18 at 12:20

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.