Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_step_2_confirm_product_display_is_og_set_user_to_member" : {
- "LABEL" : "Step 2: Confirm Product Display is OG, set user to member",
- "PLUGIN" : "rule",
- "REQUIRES" : [ "og" ],
- "USES VARIABLES" : {
- "line_item" : { "label" : "line_item", "type" : "commerce_line_item" },
- "product_display" : { "label" : "product_display", "type" : "node" },
- "user_purchased" : { "label" : "user_purchased", "type" : "user" }
- },
- "IF" : [ { "og_entity_is_group" : { "entity" : [ "product-display" ] } } ],
- "DO" : [
- { "og_subcribe_user" : { "user" : [ "user-purchased" ], "group" : [ "product-display" ] } }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement