Book Image

Building E-commerce Sites with Drupal Commerce Cookbook

By : Richard Carter
Book Image

Building E-commerce Sites with Drupal Commerce Cookbook

By: Richard Carter

Overview of this book

<p>Get to grips with Drupal Commerce, the new ecommerce framework based on the Drupal CMS , one of the most popular and powerful open source content management systems available.<br /><br />"Building E-commerce Sites with Drupal Commerce Cookbook" takes you through the installation, configuration, and customisation of your Drupal Commerce store. With clear, practical recipes with plenty of screenshots and tips this book will help you build attractive and profitable eCommerce sites.<br /><br />This book starts by showing you how to install and configure your Drupal Commerce store. Once your shop is up and running, you’ll then learn how to customise and optimise it to make it stand out and display your products better.<br /><br />Going further into customisation, you will learn to add custom product types before creating a stylish new Drupal theme for your store. Packed with tips, this book will also help guide you through common problems, as well as optimising and managing your store on a day to day basis.<br /><br />"Building E-commerce Sites with Drupal Commerce Cookbook" will guide you through everything you need to know to get your online store up and running and selling your products, with easy step-by-step guides and screenshots to help walk you through everything.</p>
Table of Contents (17 chapters)
Building E-commerce Sites with Drupal Commerce Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a new theme for Drupal Commerce


Drupal Commerce is supported by Drupal's flexibility, and its theming system is no different. You can create a new theme to change the look and feel of your Drupal Commerce store.

Getting started

Drupal Commerce's default theme is an extension of the Omega theme of Drupal 7 called Omega Kickstart (see http://drupal.org/project/omega_kickstart):

As you can see, it provides a nice, clean base to start your own Drupal Commerce theme on.

How to do it...

You can create your own theme based on the Omega Kickstart theme by creating a subtheme, which will simply overwrite the aspects of the Omega Kickstart theme you don't want to use:

  1. To begin creating your new subtheme, you will need to create a directory in the /sites/all/themes directory of your Drupal Commerce installation. The new subtheme will be called defacto, so you will need to create a directory at /sites/all/themes/defacto.

  2. Your new theme will need a .info file to tell Drupal about it, so create a file...