Book Image

Mastering Magento

By : Bret Williams
Book Image

Mastering Magento

By: Bret Williams

Overview of this book

<p>Magento, the most popular open source e-commerce platform in the world, is both amazingly powerful and astoundingly complex. Learn from an experienced Magento "master" how to leverage the full power of Magento.<br /><br /><i>MASTERING MAGENTO</i> is the perfect companion guide for both newcomers and experienced Magento users. Designers, developers and store owners alike will have a better understanding of how Magento works, and how to take advantage of Magento's immense power to create online stores that help you sell.<br /><br />From planning your Magento installation through advanced techniques designed to make your store as successful as possible, this book is a roadmap for managing your Magento store.<br /><br />Focusing on Magento's Community version, the book covers everything from creating and managing multiple stores to fine-tuning Magento for speed and performance. Learn how to manage categories, products, design themes, extensions and more.<br /><br />Using real-world examples, screenshots and personal insights, you'll learn to truly master Magento.</p>
Table of Contents (17 chapters)
Mastering Magento
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Preface

Among open source e-commerce platforms, Magento has emerged in a relatively short period of time as the most popular, advanced e-commerce platform on the market. Since 2008, Magento has evolved to claim its own place as an advanced, extendable system.

Magento Inc. claims that people have downloaded the Magento software package over 2.5 million times and that it is used by over 80,000 merchants around the world. Undoubtedly, most of these downloads are of the Community version of the platform. The Professional and Enterprise versions are premium priced, while Community remains free to use as it is — or as you can modify it to meet your needs.

Unfortunately, many find Magento to be more complex and unwieldy than they might prefer. It's understandable given that a basic, initial install of Magento Community includes more than 28,000 files. The Model-View-Controller architecture of Magento as well as the sheer depth of included features contributes to the complexity of the system.

While millions may have downloaded Magento, far fewer have succeeded in mastering the installation, configuration, management, and extendibility of the system. Magento Inc. doesn't provide direct support or substantial online documentation for the Magento Community. Newcomers generally find they are investing a huge amount of time navigating the labyrinth of files, testing possible configurations offered in online forums (many of which are not necessarily correct), and learning by making lots of mistakes. It's not uncommon to find new Magento users — designers and developers, especially — deleting an entire installation and re-installing from scratch, sometimes more than once.

The good news is that Magento, while indeed complex, does not have to be a dreadful experience. There are thousands of others like you who do share great information on online forums and blogs; the system, once you understand its basic building blocks, will absolutely amaze you with its features. And, of course, you have this book to help you get up to speed in far less time than ever before possible.

Mastering Magento was written to be an Owners Manual for Magento, specifically for those who administer, design, or develop with this platform. Administrators will learn how to configure and manage their online e-commerce store. By understanding the theming system of Magento and basic architecture structures, designers can give online stores amazing new looks beyond the usual collection of installable templates. Most importantly, those charged with installing, configuring, and extending the actual platform deployment — the developers — will realize how the system's programming components connect with the intended functionality in order to give the administrator even better performance, features, and control. Developers will quickly become Magento mavens, shortcutting weeks and months of arduous research and trial.

As an Owners Manual, this book is designed to be more of a reference than a tutorial. While there are step-by-step guides throughout, the book is not intended to be a 1-2-3 guide to installing and operating a Magento store. Its purpose is to give you specific information on the different aspects of this grand platform, according to your needs. If you're a designer, you may not need more than a cursory peak at the chapter on product management, instead focusing your time on the chapter on using themes to brand your store. As an administrator, you'll no doubt find more value learning about managing non-product content than about tuning the server for peak performance. That said, it will serve all those who become involved in a Magento installation to give every chapter at least a brief read in order to understand how all the interconnections of files, functions, and features combine to power Magento-based web stores.

For the sake of full disclosure, this book is not a complete Magento guide. Much of the basic installation and operation of Magento is quite transparent or easily understood through online documentation. However, from my own experience, in order to fully utilize the enormous power of Magento, a deeper understanding and application of Magento's features was not — until this book — easily accessible or convenient. I have spent hundreds of hours researching, testing, and documenting so many of Magento's aspects, that it became apparent that others like me could benefit from having a compiled collection of these processes.

This book focuses on the latest version of Magento Community: version 1.6. Many of the concepts discussed remain applicable to earlier versions, but don't assume the configurations and programming presented here will work. If you're entirely new to Magento, you'll be installing version 1.6 anyway, as there is no compelling reason to use an earlier version unless there is a particular must-have extension or theme that only works with an earlier version. Even in this case, it is perhaps better to urge the developer to update their work to version 1.6, rather than go through the potential potholes of updating to 1.6 later.

What this book covers

Chapter 1, Planning for Magento, introduces you to the very structure and purpose of Magento, and helps you create the most important item of all: your plan for building a Magento-powered store.

Chapter 2, Successful Magento Installation, covers installation strategies in a typical shared-server environment, as well as guides you through initial configurations and backup strategies.

Chapter 3, Managing Products, gets to the core of your e-commerce website: the products you will be selling. You'll learn about categories, product types, and presentation features.

Chapter 4, Designs and Themes, not only guides administrators who wish to install pre-designed themes, it also helps designers understand how to convert custom designs into unique Magento themes.

Chapter 5, Configuring to Sell, is how you make money with Magento: the sales process. From payment gateways to customer promotions, this chapter is all about why you have an e-commerce store in the first place.

Chapter 6, Managing Non-product Content, explains how to create and manage non-product information on your site, such as static content pages and sidebar features.

Chapter 7, Marketing Tools, teaches you how Magento helps you attract and convert customers, through product feeds, newsletters, and more.

Chapter 8, Extending Magento, helps you explore the extendibility of Magento through installable extensions or custom programming — or both.

Chapter 9, Optimizing Magento, focuses on making Magento run at the best possible speed and performance, through caching, indexing, and tuning.

Chapter 10, Advanced Techniques, takes you beyond the standard installation and into some common, advanced techniques to add further value to your Magento store.

Chapter 11, Pre-launch Checklist, introduces an all-important pre-launch checklist to help you bring your new Magento store online.

What you need for this book

The most important asset you must have before diving into this book is a sense of adventure. Exploring Magento takes time, but around almost every corner you'll have one "Wow!" moment after another.

Each reader will approach this book from different perspectives, and with different skill sets. Designers will have a good understanding of HTML, CSS, and FTP. Developers will benefit from having a good working knowledge of PHP, MySQL, SSH, and server management. Administrators will have experience with web-based applications, business processes, and product marketing.

If you intend to use this book to help you install, configure, and launch a Magento website, be prepared to have a web server onto which you can install Magento. In Chapter 2, Successful Magento Installation, we discuss hosting providers, but, as I show you, Magento can be installed onto your own desktop.

Who this book is for

This book is for anyone using Magento, specifically the widely popular Community version, to create and manage online e-commerce stores. Whether you want to administer, design, or develop the store, you'll understand its complexity and master its power to forge a powerful online selling machine.

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: "Ability to override .htaccess file option".

A block of code is set as follows:

SetEnvIf Host www\.[domain] MAGE_RUN_CODE=[code]
SetEnvIf Host www\.[domain] MAGE_RUN_TYPE=[type]
SetEnvIf Host ^[domain] MAGE_RUN_CODE=[code]
SetEnvIf Host ^[domain] MAGE_RUN_CODE=[type]

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

<?php /*<div class="col-wrapper">*/ ?>
\<div class="col-main">
<?php echo $this->getChildHtml('global_messages') ?>

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: " It seems easy when you look at the Store Management screen".

Note

Warnings or important notes appear in a box like this.

Note

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 e-mail to , and mention the book title through the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, 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.

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 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 errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website, or added to any list of existing errata, under the Errata section of that title.

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 website 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.