Thursday, 22 March 2018

PHP "echo" Magento Fancybox



I created an attribute called "youtube" (text field only) on magento. In this text field I put youtube video urls like (www.youtube.com/embed/nk_FpiXp-3s) etc...




So my issue is I`m trying to php echo this attribute "youtube" inside my html href code.



 Youtube (iframe)


but it seems to break the page. Also my fancybox script.



    


Any tips guys ?
It's custom attribute inside of a custom block. The block on product page is working fine so the issue is on php echo.



Thanks!



Sorry for the missing (?>) but it seems to not be working.


Answer




Use the code below



getYoutube(); ?>

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...