Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_if_admin_send_notification" : {
- "LABEL" : "If admin, send notification",
- "PLUGIN" : "reaction rule",
- "WEIGHT" : "4",
- "REQUIRES" : [ "rules", "commerce_checkout" ],
- "ON" : [ "commerce_checkout_complete" ],
- "IF" : [
- { "user_has_role" : {
- "account" : [ "site:current-user" ],
- "roles" : { "value" : { "3" : "3" } }
- }
- }
- ],
- "DO" : [
- { "mail" : {
- "to" : [ "commerce-order:mail" ],
- "subject" : "Order [commerce-order:order-number] at [site:name]",
- "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.",
- "from" : ""
- }
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement