Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with Drupal Commerce

You're reading from   Getting Started with Drupal Commerce Learn everything you need to know in order to get your first Drupal Commerce website set up and trading

Arrow left icon
Product type Paperback
Published in Sep 2013
Publisher Packt
ISBN-13 9781783280230
Length 152 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Toc

Table of Contents (18) Chapters Close

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

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image