Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_send_emails" : {
- "LABEL" : "Send emails",
- "PLUGIN" : "reaction rule",
- "OWNER" : "rules",
- "REQUIRES" : [ "rules", "commerce_checkout" ],
- "ON" : { "commerce_checkout_complete" : [] },
- "DO" : [
- { "LOOP" : {
- "USING" : { "list" : [ "commerce-order:commerce-line-items" ] },
- "ITEM" : { "list_item" : "Current list item" },
- "DO" : [
- { "component_rules_load_product_by_line_item" : {
- "USING" : { "line_item" : [ "list-item" ] },
- "PROVIDE" : { "product" : { "product" : "Product" } }
- }
- },
- { "mail" : {
- "to" : [ "product:creator:mail" ],
- "subject" : "\u0422\u0435\u043c\u0430 \u043f\u0438\u0441\u044c\u043c\u0430",
- "message" : "\u0422\u0435\u043a\u0441\u0442 \u043f\u0438\u0441\u044c\u043c\u0430",
- "language" : [ "" ]
- }
- }
- ]
- }
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement