Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_load_product_by_line_item" : {
- "LABEL" : "Load product by line item",
- "PLUGIN" : "rule",
- "OWNER" : "rules",
- "REQUIRES" : [ "rules" ],
- "USES VARIABLES" : {
- "line_item" : { "label" : "Line item", "type" : "commerce_line_item" },
- "product" : { "label" : "Product", "type" : "commerce_product", "parameter" : false }
- },
- "IF" : [
- { "entity_has_field" : { "entity" : [ "line-item" ], "field" : "commerce_product" } }
- ],
- "DO" : [
- { "data_set" : { "data" : [ "product" ], "value" : [ "line-item:commerce-product" ] } }
- ],
- "PROVIDES VARIABLES" : [ "product" ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement