Remove Sales Tax for Specific Roles with WooCommerce
Have you ever needed to remove sales tax for a specific user role in WooCommerce? A commom instance of this application would be for re-sale customers shopping at your store which in many states are not required to pay tax. I am going to show you how to remove sales tax/VAT for specific user roles.
First you are going to want to create a unique user role within WordPress. I do this with the User Role Editor plugin. This plugin is easy to use with many features to customize user roles.
Once you have the plugin installed you are going to navigate to Users –> User Role Editor in the WordPress admin sidebar. When the page loads click “Add Role”.
Make sure to take note of the Role Name (ID) field you enter. You will need this for the code later.
Next you are going to want to head over to Appearance —> Editor to make some modifications to your functions.php file. Some WordPress installations will have the editor disabled for security reasons. If this is the case it is easiest to modify the file via FTP. Make sure to be using a child theme so you won’t lose your updates when your theme is updated.
Paste the code below into your child theme functions.php file.
Make sure to replace ‘role-1’ with the Role Name (ID) you created earlier.
That’s it! Make sure to check out our other tutorials for more WordPress tips & tricks.
Shopify vs Woocommerce – Strong businesses thrive online. What if someone could shut down your eCommerce store at ANY time, for ANY reason, WITHOUT notice? Who really owns your website? Avoid you business the risk all together by…
Sometimes Wordpress can get a bit bogged down. Increasing the memory that your server allocates to Wordpress can help.
When you are done reading this you will be equipped with the knowledge of a tool I have found to be very useful for organizing and securing all of your passwords.
Want new articles before they get published?
Subscribe to our Awesome Newsletter.