Book Image

Magento 1.3: PHP Developer's Guide

By : Jamie Huskisson
Book Image

Magento 1.3: PHP Developer's Guide

By: Jamie Huskisson

Overview of this book

<p>Magento is the most powerful e-commerce solution around and has gained popularity in a short period of time. You can create and manage online stores using the extensive suite of powerful tools it offers. However, because of its powerful features, developing with Magento can be easier said than done.<br /><br />This book will show you how to develop better and do more with the Magento. You will be able to extend and customize modules for the Magento system without editing the core system code. It will show you how to create both basic and advanced functionality modules for your store and help you turn your ideas for extending Magento into reality by building modules from scratch.<br /><br />This book starts by walking you through the server requirements for installing Magento making sure Magneto's installation and upgrade process can fit into your workflow and suit your hosting environment setup. Then it runs through the architecture behind Magento's system, covering the core file structure and how the template system works. You'll also learn how to build a basic shipping module, payment module, and a brand management module for Magento. As you delve deeper into the book you will learn how to integrate your favorite CMS into Magento for data portability. <br /><br />By the end of the book you will be able to take your basic knowledge of Magento and turn it into something advanced that will help you develop turn your ideas for extending Magento into reality.</p>
Table of Contents (16 chapters)
Magento 1.3: PHP Developer's Guide
Credits
About the Author
About the Reviewers
Preface
2
Installing/Upgrading Magento and Preparing for Development
6
Building a Basic Featured Products Module
Index

Preface

Magento 1.3: PHP Developer's Guide will guide you through development with Magento, an open source e-commerce platform. Exploring commonly approached areas of Magento development, Magento 1.3: PHP Developer's Guide provides you with all the information you'll need to get a very solid understanding of developing with Magento.

What this book covers

Chapter 1, Magento 3.1: PHP Developer's Guide shows you what this book will cover entirely in detail for you to read through.

Chapter 2, Installing/Upgrading Magento and Preparing for Development will prepare you for development with Magento as well as showing you how to install and upgrade Magento using a variety of different methods.

Chapter 3, Magento's Architecture introduces you to Magento's architecture, the Zend framework, and how the system works from a development point of view.

Chapter 4, Shipping Modules in Magento shows you how to put together shipping modules in Magento to handle shipping calculation and information.

Chapter 5, Building a Payment Module for Magento guides you in putting together payment methods in Magento and building connecting modules between Magento and the payment gateway of your choice.

Chapter 6, Building a Basic Featured Products Module walks you through building a featured product module into your web site so that you can show featured products in your Magento categories.

Chapter 7, Fully-Featured Module for Magento with Admin Panel shows you how to put together a fully featured module in Magento as well as giving it a full backend to manage data with. You'll also learn how to use the module creator to quickly deploy module skeletons to use yourself in the future.

Chapter 8, Integration of Third-Party CMS will show you how to integrate Wordpress with your Magento installation. It will also show you the other options available should you use any other content management systems.

Chapter 9, Magento's Core API guides you through the Magento Core API and how to utilize it with scripts of your own to interface with Magento's data.

Chapter 10, Importing and Exporting Data shows you how to work with import and export data profiles in Magento to work with basic order, product, and customer data.

Appendix, Resources for Further Learning, contains additional resources for further learning. Its not a part of this book and it can be downloaded from Packt's website http://www.packtpub.com/files/7429-Appendix-Resouces-for-Further-Learning.pdf.

What you need for this book

You will need an installation of Magento, either on your local machine or on a remote server, your favorite code editor, and permissions to manipulate files.

Who this book is for

If you are a PHP developer who wants to understand the architecture of Magento, learn how to extend the system with PHP code, add new features, and integrate Magento with a third-party CMS, this book is for you.

You are expected to be a confident PHP 5 developer. No experience of Magento development is expected, although you should be familiar with the operation of Magento. No experience of the Zend framework is expected.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We can include other contexts through the use of the include directive."

A block of code is set as follows:

public function _prepareLayout()
  {
    return parent::_prepareLayout();
  }
  public function getHelloworld()
  {
    return 'Hello world';
  }

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

public function _prepareLayout()
  {
    return parent::_prepareLayout();
  }
  public function getHelloworld()
  {
    return 'Hello world';
  }

Any command-line input or output is written as follows:

# cp /usr/src/asterisk-addons/configs/cdr_mysql.conf.sample
     /etc/asterisk/cdr_mysql.conf

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "clicking the Next button moves you to the next screen".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an email to , and mention the book title via the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or email .

Note

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book on, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Tip

Downloading the example code for the book

Visit http://www.packtpub.com/files/code/7249_Code.zip to directly download the example code.

The downloadable files contain instructions on how to use them.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration, and help us to improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the let us know link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata added to any list of existing errata. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or web site name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.