Book Image

Getting Started with Drupal Commerce

By : Richard Jones
Book Image

Getting Started with Drupal Commerce

By: Richard Jones

Overview of this book

Drupal Commerce is emerging as the preferred option for open source e-commerce, and it also stands up to comparison against established proprietary systems. Getting Started with Drupal Commerce is an introductory guide to building an online store using Drupal Commerce in Drupal 7. Getting Started with Drupal Commerce takes you step-by-step through a complete e-commerce website build, from a clean installation of Drupal to a working example store. Starting with how to set up a Drupal development environment, we then discuss the planning of an e-commerce site and the typical questions you should be asking before getting started. Next, we walk through all of the essential setup required for most types of e-shop, including taxes, shipping, discounts and coupons, the checkout process, and backend order management. By the end of Getting Started with Drupal Commerce, you will be fully-equipped to plan and build your own store and you will understand the fundamental principles of Drupal Commerce that will enable you to progress to more complex store builds.
Table of Contents (18 chapters)
Getting Started with Drupal Commerce
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Checkout rules


One of the major dependencies of Drupal Commerce is the Rules module.

Rules is a powerful and highly configurable system of events, conditions, and actions which make the progress of the order possible.

There are a number of default checkout rules defined, which we can use to illustrate how Rules work, using the following steps:

  1. From the toolbar, navigate to Store | Configuration | Checkout settings.

  2. Then click onto the CHECKOUT RULES tab, as shown in the following screenshot:

How a rule works

Click on edit on the first rules.

A rule consists of one or more Events, which will start the rule when they occur. In this case, the event is Completing the checkout process. Drupal Commerce will trigger this event when the customer completes the last pane in the checkout process.

Next, the rules will evaluate the Conditions to determine if the rule should continue. These conditions are extensive, but in this case, we want this rule to run every time.

Finally, the rules will fire one or more...