You are previewing Magento 1.4 Development Cookbook.
O'Reilly logo
Magento 1.4 Development Cookbook

Book Description

A practical guide to take your Magento store to the next level by developing powerful modules and extensions

  • Develop Modules and Extensions for Magento 1.4 using PHP with ease

  • Socialize your store by writing custom modules and widgets to drive in more customers

  • Achieve a tremendous performance boost by applying powerful techniques such as YSlow, PageSpeed, and Siege

  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

  • In Detail

    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.

    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.

    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.

    A practical guide to take your Magento store to the next level by developing powerful modules and extensions

    Table of Contents

    1. Magento 1.4 Development Cookbook
      1. Magento 1.4 Development Cookbook
      2. Credits
      3. About the Author
      4. About the Reviewer
      5. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      6. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Errata
          2. Piracy
          3. Questions
      7. 1. Getting Started with Magento Development
        1. Introduction
        2. Preparing the platform with a virtual host
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Setting up a Subversion/SVN
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Getting the latest copy of Magento with the SVN checkout
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Setting up MySQL tools
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Setting up a Magento project with NetBeans
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Working with Magento code
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Some notes on installation and sample data
      8. 2. CMS and Design
        1. Introduction
        2. Adding a home link to the menu bar
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Changing any page title in Magento
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Customizing a Magento error page
          1. How to do it...
          2. How it works...
          3. There's more...
        5. Adding AdWords tracking code to order confirmation page in Magento
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Adding a custom CMS layout template
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Adding an RSS feed (last five tweets!)
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Placing the trusty old contact form in CMS
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Integrating JW Image Rotator 3.17 in Magento
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
      9. 3. Adding Extra Functionalities
        1. Introduction
        2. Integrating WordPress in Magento
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See Also
        3. Creating a new page
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Adding jQuery support
          1. Getting ready
          2. How to do it...
            1. How it works...
          3. Adding Lightbox2 in Magento
            1. Getting ready
            2. How to do it...
            3. How it works...
          4. Adding an accepted payment banner at the footer
            1. Getting ready
            2. How to do it...
            3. How it works...
      10. 4. Customizing a Store
        1. Introduction
        2. Creating a custom "Twitter handle" field in a registration form
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Deleting orders in Magento
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        4. Using Google Website Optimizer
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Further reading
        5. Creating a custom variable and using its own e-mail templates
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Using Google analytics for Magento
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        7. Creating Catalog and Shopping Cart Price Rules
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Creating a featured product and showing it in the home page
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Creating a custom admin theme
          1. Getting ready
          2. How to do it...
          3. How it works...
      11. 5. Playing with Products
        1. Introduction
        2. Setting up the Catalog defaults
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Adding a Facebook 'Like' button in product page
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        4. Setting up Table Rates shipping
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Adding a product to the cart through Querystring
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Adding a product by SKU
        6. Creating a configurable product
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        7. Embedding a YouTube video in product details
          1. How to do it...
          2. How it works...
      12. 6. Adding a Professional Touch to Your Site
        1. Introduction
        2. Installing Magento 1.4 in PHP 5.3.2(without mcrypt)
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Further security
        3. Optimizing Magento store for search engines
          1. How to do it...
            1. How it works...
          2. Implementing PayPal Website Payments Pro and Express Checkout into Magento
            1. Getting ready
            2. How to do it...
            3. How it works...
          3. Preventing a CSRF attack in Magento
            1. How to do it...
            2. How it works...
      13. 7. Database Design
        1. Introduction
        2. Resources and database connections
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Magento database replication using Master Slave setup
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Using the Magento’s Singleton method
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Repairing the Magento database
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Working with Magento’s EAV design
          1. How to do it...
          2. How it works...
      14. 8. Creating a Module
        1. Introduction
        2. Creating an empty module with a Module Creator
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Creating the required directories
          1. How to do it...
          2. How it works...
        4. Activating a module
          1. How to do it...
          2. How it works...
        5. Creating a controller for the module
          1. How to do it...
          2. How it works...
        6. Creating a configuration XML file for the module
          1. How to do it...
          2. How it works...
        7. Creating a helper for the News module
          1. How to do it...
            1. How it works...
        8. Creating models for the module
          1. How to do it...
          2. How it works...
        9. Setting up SQL for the News module
          1. How to do it...
          2. How it works...
        10. Designing a template for the News module
          1. How to do it...
          2. How it works...
        11. Adding required blocks for the News module
          1. How to do it...
          2. How it works...
      15. 9. Creating a Shipping Module
        1. Introduction
        2. Initializing module configuration
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Writing an adapter model
          1. How to do it...
          2. How it works...
        4. Adding a module in backend
          1. How to do it...
          2. How it works...
        5. Adding a module in frontend
          1. How to do it...
          2. How it works...
          3. See also...
      16. 10. Writing a Social Widget
        1. Introduction
        2. Creating an empty module and an enabler file
          1. How to do it...
          2. How it works...
        3. Creating a config file and declaring the widgets
          1. How to do it...
          2. How it works...
        4. Writing the default module helper Data.php
          1. How to do it...
            1. How it works...
          2. Creating a source model for services multi select in widget configuration
            1. How to do it...
            2. How it works...
          3. Creating frontend block for our widget
            1. How to do it...
            2. How it works...
          4. Creating templates
            1. How to do it...
            2. How it works...
      17. 11. Performance Optimization
        1. Introduction
        2. Measuring/benchmarking your Magento with Siege, ab, Magento profiler, YSlow, Page Speed, GTmetrix, and WebPagetest
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Optimizing Magento database and MySQL configuration
          1. How to do it...
          2. How it works...
          3. There's more
        4. Optimizing Apache web server configuration
          1. How to do it...
          2. How it works...
        5. Tuning Magento configurations
          1. How to do it...
          2. How it works...
        6. Using APC/Memcached as the cache backend
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Accelerating PHP: php.ini configuration
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Applying YSlow and Page Speed rules
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also...
      18. 12. Debugging and Unit Testing
        1. Introduction
        2. Installing and configuring Xdebug
          1. How to do it...
          2. How it works...
          3. There's more...
        3. Using FirePHP with Zend Wildfire plugin
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. Make sure to add your Magento domain in FirePHP
        4. Installing PHPUnit and necessary PHP CLI binaries
          1. How to do it...
          2. How it works...
          3. There's more...
        5. Writing your first Magento test case
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also