Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_after_paid_in_full_subscribe_member" : {
- "LABEL" : "After paid in full, subscribe member",
- "PLUGIN" : "reaction rule",
- "REQUIRES" : [ "rules", "commerce_payment" ],
- "ON" : [ "commerce_payment_order_paid_in_full" ],
- "DO" : [
- { "LOOP" : {
- "USING" : { "list" : [ "commerce-order:commerce-line-items" ] },
- "ITEM" : { "list_item" : "Current list item" },
- "DO" : [
- { "component_rules_step_1_confirm_line_item_has_product_display" : {
- "USING" : {
- "line_item" : [ "list-item" ],
- "user_purchased" : [ "commerce-order:owner" ]
- },
- "PROVIDE" : { "product_display" : { "product_display" : "product_display" } }
- }
- },
- { "component_rules_step_2_confirm_product_display_is_og_set_user_to_member" : {
- "line_item" : [ "list-item" ],
- "product_display" : [ "product_display" ],
- "user_purchased" : [ "commerce-order:owner" ]
- }
- }
- ]
- }
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement