How to Add Magento Product Video

Submitted on: 9/2/2016 6:28:29 AM
By: Henry Roger  
Level: Intermediate
User Rating: By 1 Users
Compatibility: PHP 5.0
Views: 17548
author picture
     Videos are always useful, particularly if you want to display information. It provides maximum details in less time. In an e-commerce store, customers are interested to collect all the information about a product before they buy the product. It's a good idea to upload a video to product page where you provide complete information about the product such as what the product is about, how to use the product, features of the product etc. This article explains how you can add YouTube video to product pages in Magento.

				1.Create “video” attribute selecting input as text. Add it to appropriate attribute set and reindex your data.
2.Go to the following file.
3.Find the following code in the above file. This code displays the Product name.

productAttribute($_product, $_product->getName(), 'name') ?>

4.Insert the following code to add the video under the product name. getVideo()): ?> Now you just have to paste the video UID (Unique Identifier) into the video attribute field to display the video. For example, xbL0ab22WEc is the UID in

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Intermediate category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)

To post feedback, first please login.