Theming for Magento — Part 01

Digg Muti Delicious

Magento, the pop­u­lar e-​​commerce web­site plat­form, has, over the past few years, become a prom­in­ant player in the con­tent man­age­ment mar­ket. Utilising its robust array of fea­tures as well as its stock and sales man­age­ment fas­cil­it­ies, Magento is a great choice for a sys­tem to man­age your online store.

When set­ting up your Magento store, the sys­tem comes pack­aged with a default theme. In the major­ity of situ­ations, this is not ideal. Enter them­ing… the pro­cess of design­ing and build­ing a cus­tom theme for your Magento store. This post is an intro­duc­tion to a col­lec­tion of blog posts dis­cuss­ing them­ing for Magento, gen­eral con­cepts and a few tips and tricks. These posts are inten­ded as guidelines to them­ing and not as a ver­batim point-​​for-​​point on how to cre­ate Magento themes. :)

Before we start, there are a few things you’ll need:

The latest ver­sion of Magento.

Self-​​explanatory. Found at http://magentocommerce.com

A web browser with a debug fascility.

Magento sets up vari­ous CSS styles and ele­ments which are applied through­out the store. You’ll be best off identi­fy­ing the con­ven­tions used and styl­ing those, instead of re-​​creating each section.

A debug fas­cil­ity could be either Firefox’s Firebug addon, Safari’s built-​​in debug con­sole or Google Chrome’s built in debug console.

A design for your store.

This is where things may start get­ting tricky. Its gen­er­ally best to stay within the guidelines in terms of the ele­ments on the screen for each page of the store. That being said, one doesn’t want to limit the design. Therefore, a solu­tion I found is to think in terms of a “header — footer” concept… ie, think in terms of design­ing “around” the con­tent area. You’ve got a header and footer area that stay the same on all pages, while the con­tent area changes (this includes the sidebars).

The XHTML/​CSS for your store.

For the scope of these blog posts, I’d recom­mend hav­ing your store already built in XHTML. Just the header and footer will be enough for now. We’ll get to the con­tent area once we’re in Magento.

A basic under­stand­ing of Magento’s architecture.

For a basic Magento theme, there isn’t much need to under­stand the under­ly­ing work­ings of the sys­tem. Essentially, just the tem­plat­ing archi­tec­ture will suf­fice. This will be explained in the next blog post.

A local server installation.

This could be WampServer (Windows), MAMP (Mac) or any other local server install­a­tion. Either way, devel­op­ing your theme on a local server is recommended.

And yeah, that should be all you’ll need for now. In the next post, I’ll briefly dis­cuss installing Magento and explain the theme archi­tec­ture and how to go about start­ing your theme off. :)

Related Posts

Leave your comment

Your email is never shared. Required fields are marked *

*
*