Skip to content

Instantly share code, notes, and snippets.

@ikwattro
Created June 18, 2012 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikwattro/2948340 to your computer and use it in GitHub Desktop.
Save ikwattro/2948340 to your computer and use it in GitHub Desktop.
vat rule export
{ "commerce_tax_type_vat" : {
"LABEL" : "Calculate taxes: VAT",
"PLUGIN" : "reaction rule",
"WEIGHT" : "10",
"REQUIRES" : [ "commerce_order", "commerce_tax", "commerce_product_reference" ],
"ON" : [ "commerce_product_calculate_sell_price" ],
"IF" : [
{ "commerce_order_compare_address" : {
"commerce_order" : [ "commerce-line-item:order" ],
"address_field" : "commerce_customer_billing|commerce_customer_address",
"address_component" : "country",
"value" : "BE"
}
}
],
"DO" : [
{ "commerce_tax_calculate_by_type" : {
"commerce_line_item" : [ "commerce-line-item" ],
"tax_type_name" : "vat"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment