Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "commerce_tax_type_vat" : {
- "LABEL" : "Calculate taxes: VAT",
- "PLUGIN" : "reaction rule",
- "TAGS" : [ "Commerce Tax" ],
- "REQUIRES" : [ "rules", "commerce_product_reference" ],
- "ON" : [ "commerce_product_calculate_sell_price" ],
- "IF" : [
- { "entity_has_field" : { "entity" : [ "commerce-line-item" ], "field" : "commerce_product" } }
- ],
- "DO" : [
- { "entity_query" : {
- "USING" : {
- "type" : "node",
- "property" : "field_product",
- "value" : [ "commerce-line-item:commerce-product:product-id" ],
- "limit" : "1"
- },
- "PROVIDE" : { "entity_fetched" : { "display_node" : "Display Node" } }
- }
- },
- { "component_rules_apply_tax_if_display_node_is_certain_type" : {
- "USING" : {
- "line_item" : [ "commerce-line-item" ],
- "display_node" : [ "display-node:0" ]
- },
- "PROVIDE" : {
- "line_item" : { "line_item" : "line_item" },
- "display_node" : { "display_node0" : "display_node" }
- }
- }
- }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement