Wednesday, 18 July 2012

How to play youtube videos in magento website?


Create an attribute "video_embed_code"

Now go to attribute set :  Default
assign this attribute to general.

When you add product it shows on left side label Video Enbed Code : 12AvSETQ
Now save the product

While displaying product on product detail view page :


getData('video_embed_code')): ?>
            getResource()->getAttribute('video_embed_code')->getFrontend()->getValue($_product); ?>
           
           

No comments:

Post a Comment