Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_publish_paid_article" : {
- "LABEL" : "Publish paid article",
- "PLUGIN" : "reaction rule",
- "REQUIRES" : [ "rules", "entity" ],
- "ON" : [ "commerce_order_update" ],
- "IF" : [
- { "data_is" : { "data" : [ "commerce-order:status" ], "value" : "completed" } }
- ],
- "DO" : [
- { "LOOP" : {
- "USING" : { "list" : [ "commerce-order:commerce-line-items" ] },
- "ITEM" : { "line_item" : "Current Line Item" },
- "DO" : [
- { "component_rules_if_line_item_has_field_do_this_action" : { "line_item" : [ "line_item" ] } }
- ]
- }
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement