We have just come up against something, the shop we are building has a few products which are exempt of VAT. We thinking about adding a property "VAT Exempt" to all products and then overriding the CalculateVATTotal task in the Basket Pipeline so that it doesn't add VAT for the products which have this property as true.
Adding a pipeline task to change VAT once applied is probably the easiest route. Basically you'd add an exempt indication to individual products and check for that in your pipeline task overriding the tax value on the order line.
Another way to do is to create a custom ITaxService and do the same thing there. You'll achieve the same results, but the ITaxService is triggered earlier in the process and will ensure that no VAT value is ever added to the order lines in question. ITaxService is configured in /umbraco/ucommerce/Components.config. Docs for ITaxService.
VAT exempt products
Hi,
We have just come up against something, the shop we are building has a few products which are exempt of VAT. We thinking about adding a property "VAT Exempt" to all products and then overriding the CalculateVATTotal task in the Basket Pipeline so that it doesn't add VAT for the products which have this property as true.
Is this the best approach?
Regards,
Jeavon
Or do we need to override the CalculateTax method as we want to show prices with VAT if they are not exempt?
Hi Jeavon,
Adding a pipeline task to change VAT once applied is probably the easiest route. Basically you'd add an exempt indication to individual products and check for that in your pipeline task overriding the tax value on the order line.
Another way to do is to create a custom ITaxService and do the same thing there. You'll achieve the same results, but the ITaxService is triggered earlier in the process and will ensure that no VAT value is ever added to the order lines in question. ITaxService is configured in /umbraco/ucommerce/Components.config. Docs for ITaxService.
Thanks Soren,
Custom ITaxService is working great.
Jeavon
Glad to hear it.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion