Book Image

Magento 1.4 Development Cookbook

By : Nurul Ferdous
Book Image

Magento 1.4 Development Cookbook

By: Nurul Ferdous

Overview of this book

<p>Magento is the fastest growing PHP-based e-commerce solution based on the Zend Framework. It is a robust CMS that provides developers the ability to enrich their store with extra functionalities using custom modules. Developing a Magento store to get the desired look and feel is not as easy as you might believe and may take hours due to the wealth of features available for you to use.<br /><br />Magento 1.4 Development Cookbook provides unparalleled guidelines to develop a much faster and more captivating Magento store by writing powerful custom modules. The book covers everything from common development tasks to integrating social networking plugins into Magento.<br /><br />If you choose to work through all the recipes from the beginning, you will have a development platform ready to work with Magento. You will also explore different ways to customize the look and feel of a Magento store to offer your customers a better user experience. Integration of Magento with WordPress to add striking functionality to your store will be accomplished in just a few steps. Some cool recipes take care of the Magento security measures by editing the parameters in the admin panel. Setting up a master-slave setup for Magento database is discussed along with other database optimizations in the database chapter. Developing new modules and widgets for Magento is thoroughly described. Optimizing Magento's performance is the most important part of this book, which is armed with some easy and incredible recipes dealing with YSlow, Page Speed, Siege, Apache bench, Apache configuration, php.ini optimization, and caching with APC or Memcached. The work procedure behind the wall is explained in an easy manner so that both novice and experienced developers can benefit from it. This book also has some recipes that are not only useful for Magento but also for any other LAMP-based project.</p>
Table of Contents (19 chapters)
Magento 1.4 Development Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Embedding a YouTube video in product details


Magento 1.4 has come up with a nice WYSIWYG editor. This will save us time when we embed a video in product details. In this recipe, we will add a YouTube video in the product details page.

How to do it...

We need the YouTube embedding code to add it in our product details. Visit the page in YouTube where your video is. Let's assume that we will embed the video from the URL http://www.youtube.com/watch?v=LKV6gLi7eRA.

  1. Visit the following page: http://www.youtube.com/watch?v=LKV6gLi7eRA.

  2. Find and click the embed button.

  3. You should see a form. Fill it up as you please. Here is a screenshot from me:

  4. Note that I set the width and height as Customised to fit it in the product description section. You can set your own configuration and copy the embed code.

  5. Now copy the embed code from the textarea. We will use it shortly in the Magento admin panel.

  6. Log in to Magento admin panel.

  7. Point your browser to Catalog | Manage Products pages.

  8. Click on the product where...