Follow Slashdot blog updates by subscribing to our blog RSS feed


Forgot your password?

Magento Beginner's Guide 124

Michael J. Ross writes "The shopping cart systems that power online stores have evolved from simple homebrew solutions in the CGI era to far more powerful open source packages, such as osCommerce. But even the later systems are frequently criticized as suffering from poorly-written code and inadequate documentation — as well as for being difficult to install and administer, and nearly impossible to enhance with new functionality and improved site styling, at least without hiring outside help. These problems alone would explain the rapidly growing interest in the latest generation of shopping cart systems, such as Magento, purported to be outpacing all others in adoption. In turn, technical publishers are making available books to help developers and site owners get started with this e-commerce alternative, such as Magento: Beginner's Guide, written by William Rice." Read on for the rest of Michael's review.
Magento: Beginner's Guide
author William Rice
pages 300
publisher Packt Publishing
rating 8/10
reviewer Michael J. Ross
ISBN 978-1847195944
summary A starter guide to this popular e-commerce shopping cart.
This title was published on 15 April 2009 by Packt Publishing, under the ISBN 978-1847195944. The firm makes available a Web page dedicated to the book, where visitors can find information on how to purchase the print or PDF versions of the book (or both as a bundle, at substantial savings). The site also has a link labeled "Code download" (even though there isn't any downloadable code), another link for viewing any errata (of which there is one reported, as of this writing), and a link for downloading a sample chapter (the third one, "Categories and Attributes").

The bulk of the book's 300 pages are organized into eleven chapters, which are intended to take the reader through the basic topics, in the same order they might be encountered by anyone developing a Magento-based store for the first time: an introduction; Magento system requirements and installation; product categories and attributes; tax rules; adding product information; site styling; advanced product functionality; CRM; payment processing; shipping configuration; and order fulfillment. These chapters are followed by an appendix that delineates, as numbered lists, all of the steps covered in greater detail in the chapters. The book concludes with an index whose value is immediately brought into question by the "products" entry, which presumably would be one of the most lengthy sections for an e-commerce book such as this one, yet contains only two entries, and neither one has a page number.

The book's first chapter begins by stating what Magento and the book offer, which were already covered in the preface. The author then introduces the demo store (an online vendor of coffee beans) to be used throughout the book, with screenshots. Readers can skip over this chapter, without missing anything of importance. This chapter, like all that follow, concludes with a summary, which adds no value to the book.

In Chapter 2, the author patiently steps the non-technical user through each phase of installing Magento on a Web server, with an emphasis upon Linux systems, which apparently are far less problematic for Magento than using a Windows-based hosting account (imagine that). PHP novices will likely appreciate the author's tip on how to use phpinfo() to see their server settings, but should be warned to delete that file so hackers cannot also stumble upon that information. Also, there are some technical inaccuracies in the author's discussion of search engine friendly URLs. In step 1 of the installation, he should have explained why he chose the Full Release and not the Downloader. On page 31, he instructs the reader to set some Magento files to permissions of 777, even though the previous page stated that his Web hosts' control panel does not allow that setting. Some readers may be confused by this, and should be advised to use their FTP programs for accomplishing this task, if their control panel has the same limitation. In step 3, the author could have provided some guidance as to what the reader can do if Magento refuses to proceed with the installation and provides no error messages, even though the database information is valid and confirmable by logging in at the command line. Of course, it is difficult to anticipate all the possible problems that a user may encounter. Even the official Magento documentation does not appear to address this particular issue. Lastly, the checklist at the end of the chapter, which specifies four items to confirm prior to installation, obviously should have been presented at the beginning of the chapter.

In the third chapter, the author explores some key concepts needed in working with Magento: products, categories, and attributes. Throughout the book, these three common terms — and later, "shopping cart," "payment gateways," etc. — are presented in title case, as if they were proper names, which they are not. Within the text, this formatting gives them the appearance of menu or page names, which quickly becomes annoying. A glaring example of this is section 16 on page 59. On the same page, the reader will encounter a rather cryptic heading, "Have a go hero." Nonetheless, readers should find the topic coverage to be quite useful, including tips on enabling a product navigation menu, optimizing categories, entering products, creating product images, and setting attributes. The next two chapters explain how to apply taxes to customer purchases, and how to add "simple products" (those without customer-changeable attributes), respectively. At first glance, one might conclude that Chapter 5 should immediately follow Chapter 3 — or be combined into one chapter — since both deal primarily with products. But within Magento, tax rules are a prerequisite for properly creating new products in one's store, so the chosen order makes sense.

The author shifts gears with the sixth chapter, which explores basic styling, i.e., customizing the appearance of a Magento-based storefront. The majority of the changes can be accomplished easily by the reader, because most of them are made within the Magento administrative area, and not through any involved editing of the CSS files of the default theme. Chapter 7 covers the topics of related products, grouped products, and configurable products — and thus clearly should have followed Chapter 5. Regardless, the author's use of illustrative examples, in creating the demo site, is quite helpful for the reader to see how to use each dialog box in the process of creating the various types of products.

The last four chapters of Magento: Beginner's Guide address four essential aspects of building and running an online store, beyond the products themselves: Chapter 8 is fairly brief, but explains how to configure a store's e-mail addresses and contact form (but not how to customize the e-mail templates), as well as the functionality made available by Magento for administering customers once they have become registered users on the store site. The subsequent chapter shows how to set up a Magento site to accept customer payments using PayPal, Authorize.Net, and other electronic payment options. Chapter 10 explains how to configure the various shipping options within Magento, and, like the previous chapter, focuses on trade-offs among the various options rather than the details of how to complete each dialog box. Confusingly, on page 219, the author states that you can charge a handling fee with the flat rate method, but four pages earlier states the exact opposite. The last chapter in the book covers the various phases of order fulfillment, as well as order management.

Despite the value of the book's contents, the material would have benefited from some proper editing, evidenced alone by the many errata: "freelance[r]" (on the "About the reviewer" page), "[and] so" (page 2), "distinguishes" (page 3), "top[-]two" (page 10), "Paypal" (page 11), "Card(saved)" (page 11), "php" (page 13), "reading and article" (page 17), "you web host" (page 27), "/single-origin-coffees" is missing (page 55), "Attribute[']s Model" (page 73), "Add New [Attribute] Set" (page 75), "answer[s]" (page 78), "zip codes" (pages 85-86, and others), "characters;" (should be a comma; page 104), "later [in the] book" (page 131), "discuss about" (page 131), "direct[ion] replacement" (page 133), "graphics;" (should be a comma; page 138), "tab. to" (page 141), "2@ brew..." (page 182), "can sit[e]" (page 190), "such [as] Visa" (page 195), and "Shopping Card" (page 197). Some of these errata are likely not attributable to the author, but instead introduced during the production phase of publication. There are other indicators that quality control was lacking, such as an errant period tacked on to every "Chapter 5" in the page title, on all the pages of that chapter. On a more subjective note, I found Packt Publishing's use of four different font sizes within the table of contents — no doubt intended to make higher level section names stand out — to actually reduce speed of scanning and comprehension, just as it does on Web pages that have half a dozen or more font sizes on a single page. The practice is not limited to this particular title, but appears to be standard in their lineup of books. In addition, the longer subheads are shown in such a thick and compressed font face as to be quite difficult to read, e.g., on page 239.

Throughout his book, the author's writing style is generally clear and approachable, though occasionally choppy. His background in technical instruction is exemplified by his logical, step-by-step explanations. Some readers may find this style too repetitive, such as the many mini-summaries — labeled "What just happened?" — scattered throughout the book. These are unnecessary, waste space, and could be excised. One instance of pedantry (on page 105) deserves special recognition/ribbing: "Yes and No are self-explanatory."

But all of these aforementioned flaws are relatively minor — particularly to the reader anxious to put up a new online storefront with minimum delay. Magento: Beginner's Guide is a detailed and lucid introduction to an e-commerce system quickly growing in favor.

Michael J. Ross is a freelance Web developer and writer.

You can purchase Magento: Beginner's Guide from Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.


This discussion has been archived. No new comments can be posted.

Magento Beginner's Guide

Comments Filter:
  • Good luck with that! (Score:5, Informative)

    by DogDude ( 805747 ) on Wednesday November 25, 2009 @03:17PM (#30229286)
    As an e-commerce business owner, and a former web developer, I just tried Magento based on a suggestion from my designer. It's not for regular people. There's no formal documentation (literally... none), and like with many OSS projects, "community" support is non-existent. Magento might be a neat project for a large team of professional developers working on e-commerce for a company with very deep pockets, but I don't think that a beginner of any kind should touch it. I'd rather have less functionality, but more function.
  • by elbiatcho1 ( 1554817 ) on Wednesday November 25, 2009 @03:18PM (#30229300)
    I've tried this and it had some potential. Very clean looks and easy to use backend, but it felt horrible performance-wise overall. Also there are Paypal problems that seem to have been lingering for long time (retrieving response from PP and analysis, notifications).
  • by Maudib ( 223520 ) on Wednesday November 25, 2009 @03:27PM (#30229420)

    The problem with Magento is not that it is too complex for a non-technical user. The problem with Magento is that is not properly documented or commented for technical users. Non-technical users that stay within the Magento default store box will have no problems, developers that try to move outside this box will be frustrated, constantly.

    Take a look at the code. There are precisely zero comments. Take a look at the documentation, there is almost no official documentation. This makes developing with Magento extremely hard as they employ some convoluted structures for very simple tasks. Eventually one finds that the code is generally of a high standard and that most things can be done without too much effort, but the learning curve is excessive.

    I believe that the lack of comments and documentation is part of an intentional strategy by Varien to drive potential users to their closed-source Enterprise solution. The power of the community edition is enticing, but finding knowledgeable developers is nearly impossible and training inhouse staff takes far too long due to the conspicuous absence of documentation and comments.

    Finally, I think it is pretty clear that PHP was a very poor choice for such a large framework. The lengths they need to go to implement something that appears to be convention bases and sort of but not quite dependency injected are extreme. PHP's inability to execute code asynchronously is a huge headache and the EAV model is cumbersome to say the least. Performance is seriously wanting.

    So yeah, Magento is enticing as hell to non-technical beginners. However ultimately the combination of Varien's refusal to document/comment and their poor technology choices make this a platform that just won't scale. Whats needed to at least partially change that is Magento for Developers*

    *There is a Magento for architects, but its already out of date and very short on real details.

  • by crypie ( 111943 ) on Wednesday November 25, 2009 @10:05PM (#30232990)
    It might be a shameless plug, but Satchmo - is a completely open source option. It's not perfect (what software is) but I believe it is a much better alternative than most of the PHP based alternatives.

    I am one of the core devs so I am biased but do feel compelled to chime in with an alternative to the PHP based solutions out there like Magento.
  • by DavidTC ( 10147 ) <slas45dxsvadiv.v ... minus punc> on Thursday November 26, 2009 @02:55AM (#30234428) Homepage

    No namespacing.

    What you mean is that PHP doesn't force namespaces. It has [] them, just no one uses them.

    No Asynchronous execution.

    That is not particularly relevant for a web programming language where a new process starts, runs code, and exits. You can't safely have background threads in that circumstances. It makes it really hard to write daemons in, but not for web programming.

    Non-standard date formats

    This just baffles me. Do you mean the DateTime object?

    I've always stored dates as a Unix timestamp in PHP.

    Dangerous stuff like "Global"

    That is a valid point.

    Without Zend-acceleration its incredibly slow.

    All languages can be incredibly slow if you run them wrong.

    If you're not using eAccelerator or Zend or Xcache or another bytecode cacher, you're running PHP wrong.

    Now, you want to argue that a bytecode cache should be included within PHP, just like it's in Python and whatever, go right ahead.

Forty two.