By default, tax is typically added to a membership level during the checkout process, but only shows once a member reaches the Membership Confirmation page.
This code recipe automatically calculates the tax and adds it to the level cost text on the checkout page as soon as a member selects their billing country and state.
You will need to have Billing fields enabled on the checkout page, as well as make use of the State Dropdown Add On for this recipe to work as expected.
Calculate and display tax rates based on the US tax rates that can be entered under Memberships > Settings > Advanced
The Code Recipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jarryd Long is the Support Manager at Paid Memberships Pro. With over 11 years of experience developing and supporting WordPress products, he has worked with a wide range of tools, from map and live chat plugins to podcasting and now membership software.
Jarryd enjoys working at Paid Memberships Pro for its supportive and positive team culture, where collaboration and mutual respect are key.
Outside of work, Jarryd is an old car enthusiast and is gradually restoring a Morris Oxford, a project that combines his love for classic vehicles and hands-on craftsmanship.
Free Course: Membership Site Development—The Basics
Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.