You are previewing Getting Started with Magento Extension Development.
O'Reilly logo
Getting Started with Magento Extension Development

Book Description

This practical guide to building Magento modules from scratch takes you step-by-step through the whole process, from first principles to practical development. At the end of it you’ll have acquired expertise based on thorough understanding.

  • Get a detailed insight into the structure of Magento

  • Learn about event/observer-driven modules

  • Get a hands-on introduction to custom shipping and payment methods

  • In Detail

    Modules, are a group of php and xml files meant to extend the system with new functionality, or override core system behavior. Most of the base Magento system is built using the module system, so you can see why they are an important feature for this rich open-source e-commerce solutions. This book explores key module development techniques and teaches you to modify, understand and structure your modules making it easy for you to get a strong foundation for clean and unobtrusive Magento module development.

    Getting Started with Magento Module Development is a practical, hands-on guide to building Magento modules from scratch. This book provides an in depth introduction and helps you discover features such as; blocks, controllers, models, configuration files, and other crucial elements which contribute to the Magento architecture. This book introduces the you to real-world modules and helps provide a strong foundation which you need to become a professional Magento module developer. The book further explores best practices and tips and tricks offering you the ultimate go to guide.

    Getting Started with Magento Module Development focuses on three areas. First you are guided through the entire Magento structure, where each important directory or file is explored in detail. Then the essence of the module structure and development is explained through the detailed coverage of models, blocks, controllers, configuration, and other files that manifest a single module. Finally, a detailed set of instructions is given for building four real-world modules, including a payment and shipping module.

    Table of Contents

    1. Getting Started with Magento Extension Development
      1. Table of Contents
      2. Getting Started with Magento Extension Development
      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. An Overview of Magento Extensions
        1. The root directory structure
        2. Code pools
        3. The theme system
        4. Basic extension configuration
        5. Controllers
        6. Blocks
        7. The model, resource, and collection
        8. The event/observer pattern
        9. Cron jobs
        10. Helpers
        11. System configuration options
        12. Summary
      9. 2. Building the Extension – Maximum Order Amount
        1. Planning your extension
        2. Registering your extension
        3. Building the configuration options interface
        4. Adding the business logic
        5. Summary
      10. 3. Building the Extension – Logger
        1. Planning your extension
        2. Registering your extension
          1. Setting up the model and install script
          2. Building the visual components
          3. Adding the business logic
        3. Summary
      11. 4. Building the Extension – Shipping
        1. Shipping methods
        2. Planning your extension
        3. Registering your extension
        4. Dissecting the existing shipping method
        5. Defining your shipping method
        6. Adding the business logic
        7. Summary
      12. 5. Building the Extension – Payment
        1. Payment methods
        2. Planning your extension
        3. Registering your extension
        4. Dissecting the existing payment method
        5. Defining your payment method
        6. Extension business logic
        7. Summary
      13. 6. Packaging and Publishing Your Extension
        1. Magento Connect
          1. Free extensions versus commercial extensions
        2. Packaging your extension
        3. Creating an extension profile
        4. Uploading the extension package
        5. Summary
      14. Index