How can I carry out tax calculations which aren’t just a %age?
-
I have some products which require a more complex tax calculation than a simple %age figure and I’m really struggling to find a solution. My thought was to add a custom tax rate of an arbitrary %age and set that as the tax rate for the ‘complex’ products. Then when added to the cart, filter the product on its tax rate, and if it’s the custom rate then carry out the ‘complex’ tax calculation and replace the original tax amount with the updated value. The updated tax amount would need to appear on the cart, checkout, order etc.
All advice would be very welcome, thanks. Any solution that works is fine, I don’t have to use the approach outlined above. Code snippets would be great, I’m by no means an expert coder but have used hooks and filters etc.
- The topic ‘How can I carry out tax calculations which aren’t just a %age?’ is closed to new replies.