Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Spotlight: Rules Module

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:05
    Spotlight: Rules Module
  • 0:07
    with Addison Berry
  • 0:11
    It's easy to imagine that different kinds of stores
  • 0:14
    might have certain things they want to have happen when various events
  • 0:17
    take place throughout the purchasing process.
  • 0:20
    For example, if someone adds more than 10 of an item to the cart,
  • 0:23
    a store might want to provide a 10% discount.
  • 0:26
    Or if someone was anonymous and then registers or logs in,
  • 0:29
    a store might want to assign the old shopping
  • 0:31
    cart to the newly found account.

Spotlight: Rules Module

Loading...

It’s easy to imagine that different kinds of stores might have certain things they want to have happen when various events take place throughout the purchasing process. For example, if someone adds more than 10 of an item to his cart, a store might want to provide a 10% discount. Or if someone was anonymous and then registers or logs in, a store might want to assign his old shopping cart to his newly found account. Traditionally, this kind of custom logic would have to be done in code by a programmer. However, the Rules module exposes a user interface for clicking together custom logic in a web-based interface. This increases accessibility to non-programmers, and also allows for bits of business logic to be shared among multiple sites with the Rules module’s import and export capabilities. In this lesson we'll review the main architectural blocks of the Rules module, covering events, conditions, actions, variables, and data selectors.