MrJoshMiller

If admin, send order notification

Apr 2nd, 2013
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. { "rules_if_admin_send_notification" : {
  2.     "LABEL" : "If admin, send notification",
  3.     "PLUGIN" : "reaction rule",
  4.     "WEIGHT" : "4",
  5.     "REQUIRES" : [ "rules", "commerce_checkout" ],
  6.     "ON" : [ "commerce_checkout_complete" ],
  7.     "IF" : [
  8.       { "user_has_role" : {
  9.           "account" : [ "site:current-user" ],
  10.           "roles" : { "value" : { "3" : "3" } }
  11.         }
  12.       }
  13.     ],
  14.     "DO" : [
  15.       { "mail" : {
  16.           "to" : [ "commerce-order:mail" ],
  17.           "subject" : "Order [commerce-order:order-number] at [site:name]",
  18.           "message" : "Thanks for your order [commerce-order:order-number] at [site:name].\n\nIf this is your first order with us, you will receive a separate e-mail with login instructions. You can view your order history with us at any time by logging into our website at:\n\n[site:login-url]\n\nYou can find the status of your current order at:\n\n[commerce-order:customer-url]\n\nPlease contact us if you have any questions about your order.",
  19.           "from" : ""
  20.         }
  21.       }
  22.     ]
  23.   }
  24. }
RAW Paste Data