Book Image

Getting Started with Magento Extension Development

By : Branko Ajzele
Book Image

Getting Started with Magento Extension Development

By: Branko Ajzele

Overview of this book

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 Extension 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 Extension 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 (13 chapters)
Getting Started with Magento Extension Development
About the Author
About the Reviewers

Dissecting the existing payment method

Magento defines its payment methods across multiple extensions. For example, dummy payment methods such as Saved CC, Check/Money Order, Zero Subtotal Checkout, Bank Transfer Payment, Cash On Delivery payment, and Purchase Order are defined within the Mage_Payment core extension, that is, under the config | default | payment XML element of the app/code/core/Mage/Payment/etc/config.xml file. The remaining two, PayPal and Authorize.Net, are each defined within its own separate extension (Mage_Paypal, Mage_PaypalUk, Mage_Authorizenet).

If you took some time to study the Stripe documentation, you could have concluded that Stripe enables you to execute the payments right from your site, which would position our extension as a hosted (on-site) payment method. If you think further, accepting credit card payments on-site is something that the built-in Saved CC payment method already does, even though it has no real web service API link in the background. What...