Advertisement
MrJoshMiller

Rule that reacts when user goes to checkout

Jan 9th, 2013
193
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None
  1. { "rules_test" : {
  2.     "LABEL" : "test",
  3.     "PLUGIN" : "reaction rule",
  4.     "REQUIRES" : [ "rules", "entity" ],
  5.     "ON" : [ "commerce_order_update" ],
  6.     "IF" : [
  7.       { "data_is" : { "data" : [ "commerce-order:status" ], "value" : "checkout_checkout" } }
  8.     ],
  9.     "DO" : [
  10.       { "drupal_message" : { "message" : "You have gone from Shopping Cart to Checking Out! WOOHOO!" } }
  11.     ]
  12.   }
  13. }
Advertisement
RAW Paste Data Copied
Advertisement