Free Sample
+ Collection

Magento 1.8 Development Cookbook

Bart Delvaux, Nurul Ferdous

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.
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781782163329
Paperback274 pages

About This Book

  • Customize the look and feel of your Magento shop
  • Work on theming, catalog configuration, module, and database development
  • Create modules to modify or extend Magento's standard behaviour

Who This Book Is For

If you are a developer with minor PHP knowledge and you want to start with Magento development, this book is for you. With its specially tailored recipes, we will guide you from simple development in Magento to the more advanced stuff. Even if you are an experienced Magento developer, some recipes in this book will interest you. The other recipes will serve as a good reference to look at.

Table of Contents

Chapter 1: Getting Started with Magento
Preparing the development environment
Installing Magento with sample data
Adding version control to the source code
Configuring the development tools
Chapter 2: Theming
Configuring Magento themes and packages
Creating your first theme
Adding extra files to your theme
Adding jQuery support
Changing a page title
Working with translations
Understanding the theming block system
Adding widgets to the layout
Chapter 3: Working with Products
Setting up the catalog defaults
Working with attribute sets
Working with product types
Adding a Facebook like button
Adding a product to the cart through querystring
Embedding a YouTube video
Changing the URL of a product page
Chapter 4: Creating a Module
Creating files
Registering blocks, helpers, and models
Adding a new page
Adding a layout file
Adding a translation file
Adding a block of new products
Rewriting a core class
Chapter 5: Database Concepts
Finding your way in the tables
Creating a database connection in Magento
Working with flat tables
Working with EAV tables
Configuring a Master/Slave setup
Repairing the database
Chapter 6: Databases and Modules
Registering the resource models
Registering connections
Installing and upgrading scripts
Creating a flat table with models
Working with Magento collections
Chapter 7: Magento Backend
Registering a backend controller
Extending the menu
Adding an ACL
Extending the system configuration
Creating a grid from a database table
Adding customer attributes
Working with source models
Chapter 8: Event Handlers and Cronjobs
Understanding Magento event types
Creating your own event
Adding an event observer
Introducing cronjobs
Creating a new cronjob
Testing your new cronjob
Chapter 9: Creating a Shipping Module
Initializing module configurations
Writing an adapter model
Extending the shipping method features
Adding the module in the frontend
Chapter 10: Creating a Product Slider Widget
Creating an empty module
Registering helpers and blocks
Creating a widget configuration file
Creating a block and the template files
Creating a custom configuration parameter
Finalizing the theming
Chapter 11: Performance Optimization
Exploring the limits of a website
Optimizing the database and MySQL configuration
Optimizing the Apache web server
Tuning the Magento configurations
Configuring APC and Memcached
Optimizing the PHP configurations
Analyzing the page speed
Chapter 12: Debugging and Unit Testing
Getting started with Xdebug
Debugging with FirePHP
Installing PHPUnit
Creating a Magento test case

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

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.


Read More