Way back I blogged here about how to use the pmpro_tax filter to add tax amounts to orders with PMPro. Since then, we’ve built a lot of different tax solutions for customers. One common method of handling taxes goes like this:
- Add a checkbox at checkout for users to self identify themselves from a certain region.
- Add an extra check at checkout to apply tax if the business address is from a certain country and/or region.
- If the checkbox or the address check matches, apply a certain tax rate at checkout.
- Update the level cost text to relay the tax information.
Here is a plugin that does just that. Just replace the country and region names, tax amount, and other checks in the code below and this should work for most cases where you need to charge tax for customers from a single region only.