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

Book Description

For developers with a little PHP know-how, this book will quickly have you exploiting both the basic and advanced features of Magento. Packed with practical recipes, it helps you build a truly impressive customized online store.

In Detail

Magento is an open source e-commerce platform which has all the functionality to function from small to large online stores. Its architecture makes it possible to extend the functionalities with plugins where a lot of them are shared by the community. This is the reason why the platform is liked by developers and retailers.

A practical developer guide packed with recipes that cover all the parts of Magento development. The recipes will start with the simple development exercises and get the more advanced as the book progresses. A good reference for every Magento developer!

This book starts with the basics. The first thing is to create a test environment. Next, the architecture, tools, files and other basics are described to make you ready for the real work.

The real work starts with the simple things like theming and catalog configuration. When you are familiar with this, we will move on to more complex features such as module and database development. When you have survived this, we will move on to the last part of making a shop ready for launch: performance optimization and testing. This book will guide you through all the development phases of Magento, covering the most common pitfalls through its recipes.

What You Will Learn

  • Install Magento on a custom webserver
  • Add your own touch to a Magento store with a custom theme
  • Speed up your store with some performance tools
  • Customize and extend backend functionality with forms, grids, and more
  • Build your own shipping module
  • Manage the display of your products
  • Understand database design patterns
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Magento 1.8 Development Cookbook
      1. Table of Contents
      2. Magento 1.8 Development Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why Subscribe?
          2. Free Access for Packt account holders
      7. 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. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Getting Started with Magento
        1. Introduction
        2. Preparing the development environment
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
        3. Installing Magento with sample data
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Adding version control to the source code
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Configuring the development tools
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
            1. MySQL client phpMyAdmin
            2. Command-line tool Wiz
      9. 2. Theming
        1. Introduction
        2. Configuring Magento themes and packages
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Creating your first theme
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
        4. Adding extra files to your theme
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Adding jQuery support
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Changing a page title
          1. How to do it...
          2. How it works...
        7. Working with translations
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Understanding the theming block system
          1. Getting ready
          2. How to do it...
          3. How it works...
        9. Adding widgets to the layout
          1. Getting ready
          2. How to do it...
          3. How it works...
      10. 3. Working with Products
        1. Introduction
        2. Setting up the catalog defaults
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Working with attribute sets
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Working with product types
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Simple product
            2. Configurable product
            3. Bundled product
            4. Grouped product
            5. Virtual product
            6. Downloadable product
        5. Adding a Facebook like button
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        6. Adding a product to the cart through querystring
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        7. Embedding a YouTube video
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Changing the URL of a product page
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
      11. 4. Creating a Module
        1. Introduction
        2. Creating files
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Registering blocks, helpers, and models
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Adding a new page
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
        5. Adding a layout file
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
        6. Adding a translation file
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Adding a block of new products
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Rewriting a core class
          1. Getting ready
          2. How to do it...
          3. How it works...
      12. 5. Database Concepts
        1. Introduction
        2. Finding your way in the tables
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Creating a database connection in Magento
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Working with flat tables
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Working with EAV tables
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        6. Configuring a Master/Slave setup
          1. Getting ready
          2. How to do it...
            1. Setting up the Master database
            2. Setting up the Slave database
            3. Configuring Magento
          3. How it works...
        7. Repairing the database
          1. Getting ready
          2. How to do it...
          3. How it works...
      13. 6. Databases and Modules
        1. Introduction
        2. Registering the resource models
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Registering connections
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        4. Installing and upgrading scripts
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Creating a flat table with models
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Working with Magento collections
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
      14. 7. Magento Backend
        1. Introduction
        2. Registering a backend controller
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
        3. Extending the menu
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Adding an ACL
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Extending the system configuration
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Creating a grid from a database table
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Adding customer attributes
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Working with source models
          1. Getting ready
          2. How to do it...
          3. How it works...
      15. 8. Event Handlers and Cronjobs
        1. Introduction
        2. Understanding Magento event types
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Creating your own event
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Adding an event observer
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Introducing cronjobs
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Creating a new cronjob
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Testing your new cronjob
          1. Getting ready
          2. How to do it...
          3. How it works...
      16. 9. Creating a Shipping Module
        1. Introduction
        2. Initializing module configurations
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. See also
        3. Writing an adapter model
          1. How to do it...
          2. How it works...
        4. Extending the shipping method features
          1. How to do it...
          2. How it works...
        5. Adding the module in the frontend
          1. How to do it...
          2. How it works...
      17. 10. Creating a Product Slider Widget
        1. Introduction
        2. Creating an empty module
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Registering helpers and blocks
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Creating a widget configuration file
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Creating a block and the template files
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Creating a custom configuration parameter
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more…
        7. Finalizing the theming
          1. Getting ready
          2. How to do it...
          3. How it works...
      18. 11. Performance Optimization
        1. Introduction
        2. Exploring the limits of a website
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        3. Optimizing the database and MySQL configuration
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Optimizing the Apache web server
          1. How to do it...
          2. How it works...
        5. Tuning the Magento configurations
          1. Getting ready
          2. How to do it...
          3. How it works...
        6. Configuring APC and Memcached
          1. Getting ready
          2. How to do it...
          3. How it works...
        7. Optimizing the PHP configurations
          1. Getting ready
          2. How to do it...
          3. How it works...
        8. Analyzing the page speed
          1. How to do it...
          2. How it works...
      19. 12. Debugging and Unit Testing
        1. Introduction
        2. Getting started with Xdebug
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Debugging with FirePHP
          1. Getting ready
          2. How to do it...
          3. How it works...
        4. Installing PHPUnit
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        5. Creating a Magento test case
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
      20. Index