Advertisement
xandeadx

Untitled

Apr 5th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. { "rules_send_emails" : {
  2. "LABEL" : "Send emails",
  3. "PLUGIN" : "reaction rule",
  4. "OWNER" : "rules",
  5. "REQUIRES" : [ "rules", "commerce_checkout" ],
  6. "ON" : { "commerce_checkout_complete" : [] },
  7. "DO" : [
  8. { "LOOP" : {
  9. "USING" : { "list" : [ "commerce-order:commerce-line-items" ] },
  10. "ITEM" : { "list_item" : "Current list item" },
  11. "DO" : [
  12. { "component_rules_load_product_by_line_item" : {
  13. "USING" : { "line_item" : [ "list-item" ] },
  14. "PROVIDE" : { "product" : { "product" : "Product" } }
  15. }
  16. },
  17. { "mail" : {
  18. "to" : [ "product:creator:mail" ],
  19. "subject" : "\u0422\u0435\u043c\u0430 \u043f\u0438\u0441\u044c\u043c\u0430",
  20. "message" : "\u0422\u0435\u043a\u0441\u0442 \u043f\u0438\u0441\u044c\u043c\u0430",
  21. "language" : [ "" ]
  22. }
  23. }
  24. ]
  25. }
  26. }
  27. ]
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement