Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_apply_tax_if_display_node_is_certain_type" : {
- "LABEL" : "Apply tax if display node is certain type",
- "PLUGIN" : "rule",
- "REQUIRES" : [ "rules", "commerce_tax" ],
- "USES VARIABLES" : {
- "line_item" : { "label" : "line_item", "type" : "commerce_line_item" },
- "display_node" : { "label" : "display_node", "type" : "node" }
- },
- "IF" : [
- { "node_is_of_type" : {
- "node" : [ "display-node" ],
- "type" : { "value" : { "page" : "page" } }
- }
- }
- ],
- "DO" : [
- { "commerce_tax_calculate_by_type" : { "commerce_line_item" : [ "line-item" ], "tax_type_name" : "vat" } }
- ],
- "PROVIDES VARIABLES" : [ "line_item", "display_node" ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement